示例#1
0
 private void PlayHoldingAnim()
 {
     m_ObjAnimation[m_HoldingAnim.name].normalizedTime = 0;
     m_ObjAnimation[m_HoldingAnim.name].speed          = m_AnimSpeed;
     m_ObjAnimation[m_HoldingAnim.name].wrapMode       = WrapMode.Loop;
     m_ObjAnimation.Play(m_HoldingAnim.name);
     m_ExSkillState  = ExSkillState.kHolding;
     m_BeginHoldTime = Time.time;
 }
示例#2
0
 private void PlayEndAnim()
 {
     JoyStickInputProvider.JoyStickEnable          = true;
     m_ObjAnimation[m_EndAnim.name].normalizedTime = 0;
     m_ObjAnimation[m_EndAnim.name].speed          = m_AnimSpeed;
     m_ObjAnimation[m_EndAnim.name].wrapMode       = WrapMode.ClampForever;
     m_ObjAnimation.Play(m_EndAnim.name);
     m_ExSkillState = ExSkillState.kEnd;
 }
示例#3
0
 private void PlayStartAnim()
 {
     m_ObjAnimation[m_StartAnim.name].normalizedTime = 0;
     m_ObjAnimation[m_StartAnim.name].speed          = m_AnimSpeed;
     m_ObjAnimation[m_StartAnim.name].wrapMode       = WrapMode.ClampForever;
     if (m_CrossFadeTime == 0)
     {
         m_ObjAnimation.Play(m_StartAnim.name);
     }
     else
     {
         m_ObjAnimation[m_StartAnim.name].weight = m_StartWeight;
         m_ObjAnimation.CrossFade(m_StartAnim.name, m_CrossFadeTime);
     }
     m_ExSkillState = ExSkillState.kStart;
 }