summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Controller/UnitController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Controller/UnitController.cs')
-rw-r--r--Assets/Scripts/Unit/Controller/UnitController.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Controller/UnitController.cs b/Assets/Scripts/Unit/Controller/UnitController.cs
index a9baf595..a48ef6ee 100644
--- a/Assets/Scripts/Unit/Controller/UnitController.cs
+++ b/Assets/Scripts/Unit/Controller/UnitController.cs
@@ -109,4 +109,14 @@ public class UnitController : MonoBehaviour/*, Interactable*/
public virtual void OnGrab()
{
}
+
+
+ public void SetYPosition(float y)
+ {
+ Vector3 pos = transform.position;
+ pos.y = y;
+ transform.position = pos;
+ }
+
}
+