diff options
author | chai <chaifix@163.com> | 2021-07-07 18:47:37 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-07-07 18:47:37 +0800 |
commit | a13f10139d33264fc9ebc5a15c75faf16fc7757e (patch) | |
tree | 9d6c40a21fc873c6e25ff4bbdeba663a73927427 /Assets/Scripts/Unit/Controller | |
parent | 1bb4971cffac3851a119f16e815bfe42abfc2df6 (diff) |
+Action Tool
Diffstat (limited to 'Assets/Scripts/Unit/Controller')
-rw-r--r-- | Assets/Scripts/Unit/Controller/PCController.cs | 19 | ||||
-rw-r--r-- | Assets/Scripts/Unit/Controller/PCController.cs.meta | 11 | ||||
-rw-r--r-- | Assets/Scripts/Unit/Controller/UnitController.cs | 21 | ||||
-rw-r--r-- | Assets/Scripts/Unit/Controller/UnitController.cs.meta | 11 |
4 files changed, 62 insertions, 0 deletions
diff --git a/Assets/Scripts/Unit/Controller/PCController.cs b/Assets/Scripts/Unit/Controller/PCController.cs new file mode 100644 index 00000000..8350b503 --- /dev/null +++ b/Assets/Scripts/Unit/Controller/PCController.cs @@ -0,0 +1,19 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+[DisallowMultipleComponent]
+public class PCController : UnitComponent
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/Assets/Scripts/Unit/Controller/PCController.cs.meta b/Assets/Scripts/Unit/Controller/PCController.cs.meta new file mode 100644 index 00000000..d7ed1aa3 --- /dev/null +++ b/Assets/Scripts/Unit/Controller/PCController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7d3cdc0aac9d88142b135a9aa3792000 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Scripts/Unit/Controller/UnitController.cs b/Assets/Scripts/Unit/Controller/UnitController.cs new file mode 100644 index 00000000..76dc9791 --- /dev/null +++ b/Assets/Scripts/Unit/Controller/UnitController.cs @@ -0,0 +1,21 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class UnitController : MonoBehaviour
+{
+ public UnitRender unitRender;
+
+ public UnitState unitState;
+
+ public UnitAnimation unitAnimation;
+
+ public UnitSkill unitSkill;
+
+ public void Initialize()
+ {
+ unitRender = GetComponent<UnitRender>();
+
+ }
+
+}
diff --git a/Assets/Scripts/Unit/Controller/UnitController.cs.meta b/Assets/Scripts/Unit/Controller/UnitController.cs.meta new file mode 100644 index 00000000..326dd122 --- /dev/null +++ b/Assets/Scripts/Unit/Controller/UnitController.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea5af1ca0baa89e4fbbe5d87920fb748 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: |