diff options
Diffstat (limited to 'Assets/Scripts/Unit/Controller/UnitController.cs')
-rw-r--r-- | Assets/Scripts/Unit/Controller/UnitController.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Controller/UnitController.cs b/Assets/Scripts/Unit/Controller/UnitController.cs index 3568cb4e..9b3ef6e5 100644 --- a/Assets/Scripts/Unit/Controller/UnitController.cs +++ b/Assets/Scripts/Unit/Controller/UnitController.cs @@ -83,6 +83,14 @@ public class UnitController : MonoBehaviour/*, Interactable*/ }
}
+ public virtual Vector3 center
+ {
+ get
+ {
+ return GetComponentInChildren<Renderer>().bounds.center;
+ }
+ }
+
public virtual void Initialize( GameObject obj , string folder)
{
unitObj = obj;
@@ -123,6 +131,11 @@ public class UnitController : MonoBehaviour/*, Interactable*/ {
}
+ public virtual void OnGetShot(CollisionInfo info)
+ {
+ }
+
+
public virtual void OnGrab()
{
}
|