优化
This commit is contained in:
@@ -28,9 +28,9 @@ namespace IndianOceanAssets.Engine2_5D
|
|||||||
|
|
||||||
// Flip shooter sprite based on target direction
|
// Flip shooter sprite based on target direction
|
||||||
if (hit.point.x > transform.position.x)
|
if (hit.point.x > transform.position.x)
|
||||||
transform.localScale = new Vector3(1, 1, 1);
|
transform.localScale = new Vector3(Mathf.Abs(transform.localScale.x), transform.localScale.y, transform.localScale.z);
|
||||||
else
|
else
|
||||||
transform.localScale = new Vector3(-1, 1, 1);
|
transform.localScale = new Vector3(-Mathf.Abs(transform.localScale.x), transform.localScale.y, transform.localScale.z);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -469,6 +469,18 @@ PrefabInstance:
|
|||||||
propertyPath: m_Sprite
|
propertyPath: m_Sprite
|
||||||
value:
|
value:
|
||||||
objectReference: {fileID: 21300000, guid: 65c67fef26e92dc468f154fb308d155a, type: 3}
|
objectReference: {fileID: 21300000, guid: 65c67fef26e92dc468f154fb308d155a, type: 3}
|
||||||
|
- target: {fileID: 3732617863691343031, guid: caf051d43a1fd9344a29f0c7376bbf5f, type: 3}
|
||||||
|
propertyPath: m_LocalScale.x
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3732617863691343031, guid: caf051d43a1fd9344a29f0c7376bbf5f, type: 3}
|
||||||
|
propertyPath: m_LocalScale.y
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 3732617863691343031, guid: caf051d43a1fd9344a29f0c7376bbf5f, type: 3}
|
||||||
|
propertyPath: m_LocalScale.z
|
||||||
|
value: 0.5
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 3732617863691343031, guid: caf051d43a1fd9344a29f0c7376bbf5f, type: 3}
|
- target: {fileID: 3732617863691343031, guid: caf051d43a1fd9344a29f0c7376bbf5f, type: 3}
|
||||||
propertyPath: m_LocalPosition.x
|
propertyPath: m_LocalPosition.x
|
||||||
value: 0
|
value: 0
|
||||||
|
|||||||
Reference in New Issue
Block a user