Exemplo n.º 1
0
    void SwitchAnimator(E_WEAPONTYPE _Type)
    {
        RuntimeAnimatorController anim = FindAnimator(_Type.ToString());

        if (anim)
        {
            m_Animator.runtimeAnimatorController = anim;
        }
    }
Exemplo n.º 2
0
    void SwitchAnimator(E_WEAPONTYPE _Type)
    {
        m_WeaponType  = _Type;
        m_AttackSound = SoundManager.Instance.GetPlayerAttackmonetClip(m_WeaponType);
        RuntimeAnimatorController anim = FindAnimator(_Type.ToString());

        if (anim)
        {
            StartCoroutine(C_SwitchAnimator(anim));
        }
    }