Пример #1
0
    protected IEnumerator DeathHandle()
    {
        StopDetect();
        SetAnimTrigger(MonsterAI.DEATH_HASH);

        mAgent.enabled = false;

        yield return(new WaitForSeconds(5f));

        MonsterPools.Retrieve(this);
    }
Пример #2
0
    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);
    }