summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/Unit/Controller')
-rw-r--r--Assets/Scripts/Unit/Controller/UnitController.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Controller/UnitController.cs b/Assets/Scripts/Unit/Controller/UnitController.cs
index 6ccf124b..3b4ab12d 100644
--- a/Assets/Scripts/Unit/Controller/UnitController.cs
+++ b/Assets/Scripts/Unit/Controller/UnitController.cs
@@ -106,6 +106,38 @@ public class UnitController : MonoBehaviour/*, Interactable*/
}
}
+ public virtual Vector3 position
+ {
+ get
+ {
+ return transform.position;
+ }
+ set
+ {
+ transform.position = value;
+ }
+ }
+
+ public virtual Quaternion rotation
+ {
+ get
+ {
+ return transform.rotation;
+ }
+ set
+ {
+ transform.rotation = value;
+ }
+ }
+
+ public virtual Vector3 lossyScale
+ {
+ get
+ {
+ return transform.lossyScale;
+ }
+ }
+
public virtual void Initialize( GameObject obj , string folder)
{
unitObj = obj;