diff options
author | chai <215380520@qq.com> | 2023-05-12 19:00:29 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-12 19:00:29 +0800 |
commit | 6c91f1ed6810a57da08a24dd1359f288c443dd75 (patch) | |
tree | 485096584922b7300e987af1fe9c21f262898a5f /WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterController.cs | |
parent | 266370578135dca270729e8a70252e776ed22898 (diff) |
*misc
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterController.cs')
-rw-r--r-- | WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterController.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterController.cs b/WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterController.cs new file mode 100644 index 0000000..7674523 --- /dev/null +++ b/WorldlineKeepers/Assets/Scripts/Unit/Characters/CharacterController.cs @@ -0,0 +1,32 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace WK +{ + + /// <summary> + /// 角色的玩法、行为,是角色的玩法核心。需要继承实现这个类 + /// </summary> + public abstract class CharacterBehaviour + { + private PlayerController m_Controller; + public PlayerController controller { get { return m_Controller; } } + + public CharacterInfo info { get { return m_Controller.info; } } + + public virtual void OnCreate() + { + } + + public virtual void OnGlobalUpdate() + { + } + + public virtual void OnStageUpdate() + { + } + + } + +}
\ No newline at end of file |