diff options
Diffstat (limited to 'Assets/Scripts/Unit/Components')
| -rw-r--r-- | Assets/Scripts/Unit/Components/UnitAnimation/UnitAnimation.cs | 2 | ||||
| -rw-r--r-- | Assets/Scripts/Unit/Components/UnitMovement.cs | 13 | 
2 files changed, 4 insertions, 11 deletions
diff --git a/Assets/Scripts/Unit/Components/UnitAnimation/UnitAnimation.cs b/Assets/Scripts/Unit/Components/UnitAnimation/UnitAnimation.cs index db81a2ed..48e8a083 100644 --- a/Assets/Scripts/Unit/Components/UnitAnimation/UnitAnimation.cs +++ b/Assets/Scripts/Unit/Components/UnitAnimation/UnitAnimation.cs @@ -16,6 +16,8 @@ public class AnimatorLayerInfo      public string name { get { return m_Animator.GetLayerName(layerIndex); } } +    public bool isBaseLayer { get { return layerIndex == 0; } } +      private Animator m_Animator;      // 当前动作的animation data,如果是blendtree选第一个动作 diff --git a/Assets/Scripts/Unit/Components/UnitMovement.cs b/Assets/Scripts/Unit/Components/UnitMovement.cs index 8c668c50..cb1df193 100644 --- a/Assets/Scripts/Unit/Components/UnitMovement.cs +++ b/Assets/Scripts/Unit/Components/UnitMovement.cs @@ -2,17 +2,8 @@  using System.Collections.Generic;  using UnityEngine; -public class UnitMovement : MonoBehaviour +public class UnitMovement : UnitComponent  { -    // Start is called before the first frame update -    void Start() -    { -         -    } -    // Update is called once per frame -    void Update() -    { -         -    } +  }  | 
