summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Component/UnitComponent.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-01 10:29:02 +0800
committerchai <chaifix@163.com>2021-09-01 10:29:02 +0800
commit046002902a421db273d832deea1a0a4b3b989a0c (patch)
tree278008556cf85f1776af502f613834eb91cc0c71 /Assets/Scripts/Unit/Component/UnitComponent.cs
parent5ccdd2737229a33e924e21616d56364773018086 (diff)
parente7c9ddfae65a93336d414c2af90effd1d8bada82 (diff)
Merge branch 'master' of warmcat.org:/home/git-repo/Erika
Diffstat (limited to 'Assets/Scripts/Unit/Component/UnitComponent.cs')
-rw-r--r--Assets/Scripts/Unit/Component/UnitComponent.cs42
1 files changed, 0 insertions, 42 deletions
diff --git a/Assets/Scripts/Unit/Component/UnitComponent.cs b/Assets/Scripts/Unit/Component/UnitComponent.cs
deleted file mode 100644
index 1e4df1fc..00000000
--- a/Assets/Scripts/Unit/Component/UnitComponent.cs
+++ /dev/null
@@ -1,42 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class UnitComponent : MonoBehaviour
-{
- public UnitController owner { get { return m_Owner; } }
-
- protected UnitController m_Owner;
-
- public bool IsAlive
- {
- get
- {
- return m_Owner != null;
- }
- }
-
- public virtual void Awake()
- {
- }
-
- public virtual void OnDestroy()
- {
- }
-
- public virtual void Initialize()
- {
- m_Owner = GetComponent<UnitController>();
- }
-
- public virtual void Release()
- {
- m_Owner = null;
- StopAllCoroutines();
- }
-
- public virtual void OnUpdate() { }
-
- private void Update() { }
-
-}