This commit is contained in:
2026-06-28 15:22:18 +08:00
parent cd509e6c97
commit b808c9e7d8
2 changed files with 14 additions and 2 deletions

View File

@@ -28,9 +28,9 @@ namespace IndianOceanAssets.Engine2_5D
// Flip shooter sprite based on target direction
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
transform.localScale = new Vector3(-1, 1, 1);
transform.localScale = new Vector3(-Mathf.Abs(transform.localScale.x), transform.localScale.y, transform.localScale.z);
}
}
}