diff options
Diffstat (limited to 'Assets/Scripts/Unit/Component/UnitComponent.cs')
-rw-r--r-- | Assets/Scripts/Unit/Component/UnitComponent.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Component/UnitComponent.cs b/Assets/Scripts/Unit/Component/UnitComponent.cs index 6c8dc916..1e4df1fc 100644 --- a/Assets/Scripts/Unit/Component/UnitComponent.cs +++ b/Assets/Scripts/Unit/Component/UnitComponent.cs @@ -4,6 +4,8 @@ using UnityEngine; public class UnitComponent : MonoBehaviour
{
+ public UnitController owner { get { return m_Owner; } }
+
protected UnitController m_Owner;
public bool IsAlive
@@ -14,6 +16,14 @@ public class UnitComponent : MonoBehaviour }
}
+ public virtual void Awake()
+ {
+ }
+
+ public virtual void OnDestroy()
+ {
+ }
+
public virtual void Initialize()
{
m_Owner = GetComponent<UnitController>();
|