Ejemplo n.º 1
0
 void StopRush()
 {
     m_AI.m_Attacking = false;
     m_Ani.SetBool("Attacking", m_AI.m_Attacking);
     StopCoroutine("Rush");
     m_State = RUGBY_ATTACK_STATE.WAIT;
 }
Ejemplo n.º 2
0
    IEnumerator WaitforsecondsAndRush(float _seconds)
    {
        m_Ani.SetTrigger("Waiting");
        m_State = RUGBY_ATTACK_STATE.WAIT;
        yield return(new WaitForSeconds(_seconds));

        transform.LookAt(m_AI.m_target);
        m_Ani.SetTrigger("Rush");
        StartCoroutine("Rush");
        m_State = RUGBY_ATTACK_STATE.RUSH;
    }