summaryrefslogtreecommitdiff
path: root/ActiveRagdoll/Assets/TABG/Scripts/Data/AnimationHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ActiveRagdoll/Assets/TABG/Scripts/Data/AnimationHandler.cs')
-rw-r--r--ActiveRagdoll/Assets/TABG/Scripts/Data/AnimationHandler.cs26
1 files changed, 21 insertions, 5 deletions
diff --git a/ActiveRagdoll/Assets/TABG/Scripts/Data/AnimationHandler.cs b/ActiveRagdoll/Assets/TABG/Scripts/Data/AnimationHandler.cs
index 2d051bf..6591e45 100644
--- a/ActiveRagdoll/Assets/TABG/Scripts/Data/AnimationHandler.cs
+++ b/ActiveRagdoll/Assets/TABG/Scripts/Data/AnimationHandler.cs
@@ -5,17 +5,33 @@ using UnityEngine;
namespace Rigging.Data
{
- public class AnimationHandler : RiggingDataBase
+ using System;
+
+ [Serializable]
+ public class IntString
{
+ public int theInt;
- protected override void OnStart()
- {
- base.OnStart();
+ public string theString;
+ }
+ public class AnimationHandler : RiggingDataBase
+ {
+ /*
+ 0 Stand
+ 1 Sprint
+ 2 Run
+ 3 Jump
+ */
+ public IntString[] animationStates;
- }
+ public int animationState; // 当前角色的动作
+ public void ChangeAnimationState(byte newState)
+ {
+ animationState = newState;
+ }
}