summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Component/UnitComponent.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-01 08:30:42 +0800
committerchai <chaifix@163.com>2021-09-01 08:30:42 +0800
commita5c191cf74238084d9bd9f805b4b6755f70d956d (patch)
tree06c0f5a85e6bda587205e5b2bea8e2d9fab4f373 /Assets/Scripts/Unit/Component/UnitComponent.cs
parent340bb7224b4f100413541df3b937d90be028a8b1 (diff)
*改变目录结构
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() { }
-
-}