From 2f310aa9f3f1cb1d51e8f62a6d5e3dda4821b82b Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 22 Sep 2021 19:25:56 +0800 Subject: *effect --- Assets/Scripts/Unit/Controller/UnitController.cs | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'Assets/Scripts/Unit/Controller/UnitController.cs') 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; -- cgit v1.1-26-g67d0