Exemplo n.º 1
0
    public IEnumerator Execute()
    {
        Debug.Log("chasing!!");

        while (Vector2.Distance(m_trans.position, targetTrans.position) > m_entity.AttackRange)
        {
            m_entity.Chase(targetTrans);
            yield return(null);
        }

        this.ExitToNextState();
    }