diff --git a/Assets/Scripts/Lua/CLRBindings/ProjectileController.cs b/Assets/Scripts/Lua/CLRBindings/ProjectileController.cs index a63ad6683..430bb75d0 100644 --- a/Assets/Scripts/Lua/CLRBindings/ProjectileController.cs +++ b/Assets/Scripts/Lua/CLRBindings/ProjectileController.cs @@ -24,13 +24,13 @@ public ProjectileController(Projectile p) { // The x position of the sprite, relative to the arena position and its anchor. public float x { - get { return p == null ? lastX : p.self.anchoredPosition.x - ArenaManager.arenaCenter.x; } + get { return p == null ? lastX : p.self.position.x - ArenaManager.arenaCenter.x; } set { MoveTo(value, y); } } // The y position of the sprite, relative to the arena position and its anchor. public float y { - get { return p == null ? lastY : p.self.anchoredPosition.y - ArenaManager.arenaCenter.y; } + get { return p == null ? lastY : p.self.position.y - ArenaManager.arenaCenter.y; } set { MoveTo(x, value); } }