From 4ccd4bc6d126e0e0f51a50aa10c85b9bf48b1210 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Wed, 18 Oct 2023 10:16:32 +0800 Subject: + init --- ActiveRagdoll/Assets/Scripts/JointAnimation.cs | 48 ++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 ActiveRagdoll/Assets/Scripts/JointAnimation.cs (limited to 'ActiveRagdoll/Assets/Scripts/JointAnimation.cs') diff --git a/ActiveRagdoll/Assets/Scripts/JointAnimation.cs b/ActiveRagdoll/Assets/Scripts/JointAnimation.cs new file mode 100644 index 0000000..a38dc50 --- /dev/null +++ b/ActiveRagdoll/Assets/Scripts/JointAnimation.cs @@ -0,0 +1,48 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class JointAnimation : MonoBehaviour +{ + #region 序列化 + public new string name; + public JointMotion[] motions; + public Rigidbody hips; + + //public bool auto = false; + #endregion + + #region 公共字段 + + #endregion + + #region 私有字段 + + #endregion + + private void Awake() + { + // 私有字段赋值 + + // 公共字段赋值 + + // 初始化 + } + + public void Start() + { + } + + private void FixedUpdate() + { + } + + public void Animate() + { + for(int i = 0; i < motions.Length; ++i) + { + motions[i].Animate(hips); + } + } + +} -- cgit v1.1-26-g67d0