public void SetState(State state) { m_curState = state; if (m_curState == State.Idle) { Debug.Log("Set state idle"); m_animController.DoIdle(); } else if (m_curState == State.Move) { Debug.Log("Set state move"); m_animController.DoMove(); } else if (m_curState == State.Attack) { Debug.Log("Set state shoot"); m_animController.DoAttack(); StartCoroutine(Fire()); } else if (m_curState == State.Dead) { Debug.Log("Set state dead"); m_animController.DoDead(); } //m_animController.PlayAnimation(); }