summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Controller
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-22 19:25:56 +0800
committerchai <chaifix@163.com>2021-09-22 19:25:56 +0800
commit2f310aa9f3f1cb1d51e8f62a6d5e3dda4821b82b (patch)
treedefb1bd9e61fc8b0575337c2fdf73754f2fd1e20 /Assets/Scripts/Unit/Controller
parent84fdd90eac4431fa278c11d7664c1d954f80b883 (diff)
*effect
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;