diff options
author | chai <chaifix@163.com> | 2021-08-05 20:05:44 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-08-05 20:05:44 +0800 |
commit | ee4d8f4187059f177c17c8c818352826c6347d38 (patch) | |
tree | 239c116dac01b20f1ce42e0f3324472ad122132a /Assets/Scripts/Unit/Component/UnitComponent.cs | |
parent | 8d4a4c7c781de11ba3735e8ffb435b23c483af7a (diff) |
*misc
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>();
|