From 982bd4e4bed6b5f8b8152b2de7c4c3fd9bd483df Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Tue, 27 Feb 2024 08:47:13 -0800 Subject: [PATCH] Update InworldBodyAnimation.cs Improved inheritability. --- .../Inworld.Assets/Scripts/InworldBodyAnimation.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/Inworld/Inworld.Assets/Scripts/InworldBodyAnimation.cs b/Assets/Inworld/Inworld.Assets/Scripts/InworldBodyAnimation.cs index a835dc0ed..25b569e77 100644 --- a/Assets/Inworld/Inworld.Assets/Scripts/InworldBodyAnimation.cs +++ b/Assets/Inworld/Inworld.Assets/Scripts/InworldBodyAnimation.cs @@ -12,18 +12,18 @@ namespace Inworld.Assets { public class InworldBodyAnimation : InworldAnimation { - [SerializeField] Animator m_BodyAnimator; + [SerializeField] protected Animator m_BodyAnimator; Transform m_HeadTransform; Vector3 m_vecInitPosition; Vector3 m_vecInitEuler; float m_LookAtWeight; - static readonly int s_Emotion = Animator.StringToHash("Emotion"); - static readonly int s_Gesture = Animator.StringToHash("Gesture"); - static readonly int s_Motion = Animator.StringToHash("MainStatus"); - static readonly int s_RemainSec = Animator.StringToHash("RemainSec"); - static readonly int s_Random = Animator.StringToHash("Random"); + protected static readonly int s_Emotion = Animator.StringToHash("Emotion"); + protected static readonly int s_Gesture = Animator.StringToHash("Gesture"); + protected static readonly int s_Motion = Animator.StringToHash("MainStatus"); + protected static readonly int s_RemainSec = Animator.StringToHash("RemainSec"); + protected static readonly int s_Random = Animator.StringToHash("Random"); protected override void Awake() {