diff options
author | chai <215380520@qq.com> | 2023-10-18 10:16:32 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-10-18 10:16:32 +0800 |
commit | 4ccd4bc6d126e0e0f51a50aa10c85b9bf48b1210 (patch) | |
tree | 9ac931da935b59a8d7c57ff0b6d90b88a0e5a479 /ActiveRagdoll/Assets/Scripts/JointAnimation.cs |
+ init
Diffstat (limited to 'ActiveRagdoll/Assets/Scripts/JointAnimation.cs')
-rw-r--r-- | ActiveRagdoll/Assets/Scripts/JointAnimation.cs | 48 |
1 files changed, 48 insertions, 0 deletions
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); + } + } + +} |