Beispiel #1
0
 public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (m_widgetController == null)
     {
         m_widgetController = WidgetController.GetInstance();
     }
 }
Beispiel #2
0
    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        if (m_widgetController == null)
        {
            m_widgetController = WidgetController.GetInstance();
        }

        if (m_enemyManager == null)
        {
            m_enemyManager = EnemyManager.GetInstance();
        }

        animator.ResetTrigger(MOVE_STATE);
    }
Beispiel #3
0
    public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        if (m_widgetController == null)
        {
            m_widgetController = WidgetController.GetInstance();
        }

        if (m_enemyManager == null)
        {
            m_enemyManager = EnemyManager.GetInstance();
        }

        if (m_weaponComponent == null)
        {
            m_weaponComponent = animator.GetComponent <WeaponComponent>();
        }
        m_canFire = true;
    }