diff options
author | chai <215380520@qq.com> | 2024-03-19 21:06:40 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2024-03-19 21:06:40 +0800 |
commit | c743485dad2ca83e12d16326afc9c319e3169f9a (patch) | |
tree | bef7635defc8d48ffe64738a7ee598f43843f9c3 /ActiveRagdoll/Assets/TABG/Scripts/Data/RiggingDataBase.cs | |
parent | 999a454764e91714847f531aee13903bfc31b0a9 (diff) |
*misc
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Data/RiggingDataBase.cs')
-rw-r--r-- | ActiveRagdoll/Assets/TABG/Scripts/Data/RiggingDataBase.cs | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Data/RiggingDataBase.cs b/ActiveRagdoll/Assets/TABG/Scripts/Data/RiggingDataBase.cs new file mode 100644 index 0000000..f304d5d --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/Data/RiggingDataBase.cs @@ -0,0 +1,56 @@ +using UnityEngine; + +namespace Rigging.Data +{ + + public class RiggingDataBase : MonoBehaviour + { + + protected Player player; + + private void Awake() + { + player = GetComponentInParent<Player>(); + OnAwake(); + } + + private void Update() + { + OnUpdate(); + } + + private void FixedUpdate() + { + OnFixedUpdate(); + } + + private void Start() + { + OnStart(); + } + + private void LateUpdate() + { + OnLateUpdate(); + } + + protected virtual void OnAwake() + { + } + protected virtual void OnUpdate() + { + } + protected virtual void OnFixedUpdate() + { + } + protected virtual void OnStart() + { + } + + protected virtual void OnLateUpdate() + { + } + + } + +} |