From c743485dad2ca83e12d16326afc9c319e3169f9a Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Tue, 19 Mar 2024 21:06:40 +0800 Subject: *misc --- .../TABG/Scripts/Action/RiggingActionBase.cs | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 ActiveRagdoll/Assets/TABG/Scripts/Action/RiggingActionBase.cs (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Action/RiggingActionBase.cs') diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Action/RiggingActionBase.cs b/ActiveRagdoll/Assets/TABG/Scripts/Action/RiggingActionBase.cs new file mode 100644 index 0000000..75adc53 --- /dev/null +++ b/ActiveRagdoll/Assets/TABG/Scripts/Action/RiggingActionBase.cs @@ -0,0 +1,47 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Rigging.Action +{ + + public class RiggingActionBase : MonoBehaviour + { + protected Player player; + + private void Awake() + { + player = GetComponentInParent(); + OnAwake(); + } + + private void Update() + { + OnUpdate(); + } + + private void FixedUpdate() + { + OnFixedUpdate(); + } + + private void Start() + { + OnStart(); + } + + protected virtual void OnAwake() + { + } + protected virtual void OnUpdate() + { + } + protected virtual void OnFixedUpdate() + { + } + protected virtual void OnStart() + { + } + } + +} \ No newline at end of file -- cgit v1.1-26-g67d0