コード例 #1
0
    void SwitchAnimator(E_WEAPONTYPE _Type)
    {
        RuntimeAnimatorController anim = FindAnimator(_Type.ToString());

        if (anim)
        {
            m_Animator.runtimeAnimatorController = anim;
        }
    }
コード例 #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));
        }
    }