Bug Fix Pastie Ship in Build

This commit is contained in:
Philip W 2021-11-08 17:07:15 +00:00
parent 75518622ea
commit 0c2185d7c7
3 changed files with 22 additions and 21 deletions

View File

@ -389,7 +389,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -125}
m_AnchoredPosition: {x: 500, y: -131.58997}
m_SizeDelta: {x: 0, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &204554430
@ -516,8 +516,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -430}
m_SizeDelta: {x: 0, y: 80}
m_AnchoredPosition: {x: 500, y: -436.58997}
m_SizeDelta: {x: 81.12676, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &222835919
MonoBehaviour:
@ -777,8 +777,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -50}
m_SizeDelta: {x: 0, y: 100}
m_AnchoredPosition: {x: 500, y: -56.589966}
m_SizeDelta: {x: 1000, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &289906080
MonoBehaviour:
@ -856,8 +856,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -510}
m_SizeDelta: {x: 0, y: 80}
m_AnchoredPosition: {x: 500, y: -516.58997}
m_SizeDelta: {x: 81.12676, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &303121901
MonoBehaviour:
@ -1546,8 +1546,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -350}
m_SizeDelta: {x: 0, y: 80}
m_AnchoredPosition: {x: 500, y: -356.58997}
m_SizeDelta: {x: 81.12676, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &615826098
MonoBehaviour:
@ -2440,8 +2440,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 0, y: -441}
m_SizeDelta: {x: 1000, y: 468.97998}
m_AnchoredPosition: {x: 0, y: -532.15}
m_SizeDelta: {x: 1000, y: 650}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1059183748
MonoBehaviour:
@ -2609,10 +2609,10 @@ RectTransform:
m_Father: {fileID: 1059183747}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 86.8201}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -600}
m_SizeDelta: {x: 260, y: 86.8201}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!95 &1066252773
Animator:
@ -2950,8 +2950,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -190}
m_SizeDelta: {x: 0, y: 80}
m_AnchoredPosition: {x: 500, y: -196.58997}
m_SizeDelta: {x: 74.88624, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1433312461
MonoBehaviour:
@ -4670,8 +4670,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 500, y: -270}
m_SizeDelta: {x: 0, y: 80}
m_AnchoredPosition: {x: 500, y: -276.58997}
m_SizeDelta: {x: 81.12676, y: 80}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2084735052
MonoBehaviour:

View File

@ -179,6 +179,7 @@ MonoBehaviour:
type: 3}
deathEffect: {fileID: 1496494696399852, guid: e61802031429a4e2e8f547dbca07fe84,
type: 3}
shipWithPasties: {fileID: 21300000, guid: 1e6561e946c90b94895946b3cfb12f82, type: 3}
--- !u!114 &114000011533140650
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -16,7 +16,7 @@ public class EnemyReturn : Physics2DObject
[Header("Death Effect When Shot")]
public GameObject deathEffect;
//[Header("Has Droppable Object")]
private Sprite shipWithPasties;
public Sprite shipWithPasties;
private bool hasDroppableObject = false;
private bool isReturning = false;
private Vector2 movement = new Vector2(0f, 0f);
@ -24,7 +24,7 @@ public class EnemyReturn : Physics2DObject
// Start is called before the first frame update
void Start()
{
Addressables.LoadAssetAsync<Sprite>("pastieShip").Completed += handle => { shipWithPasties = handle.Result; };
//Addressables.LoadAssetAsync<Sprite>("pastieShip").Completed += handle => { shipWithPasties = handle.Result; };
}
// Update is called once per frame