protected IEnumerator DeathHandle() { StopDetect(); SetAnimTrigger(MonsterAI.DEATH_HASH); mAgent.enabled = false; yield return(new WaitForSeconds(5f)); MonsterPools.Retrieve(this); }
protected IEnumerator DeathHandle() { SetAnimTrigger(MonsterAI.DEATH_HASH); FollowEnd(); StatusMgr.updateKill(1); StatusMgr.updateMoney(m_money); StatusMgr.updateScore(m_score); yield return(new WaitForSeconds(5f)); MonsterPools.Retrieve(this); }