예제 #1
0
    void MonsterHurt()
    {
        if (mOwner.mFSM.CurRule == Monster_Idle.GetInstance())
        {
            ThinkQueue.Enqueue(MonsterFSM.MS_Attack);

            SetThinkInactive();

            ThinkQueue.Enqueue(MonsterFSM.MS_Idle);
        }
    }
예제 #2
0
파일: Monster.cs 프로젝트: woym2008/Oberon
    public void Idle(float idleTime)
    {
        //
        Animator animator = GetComponent <Animator>();

        if (animator != null)
        {
            animator.SetBool("attack", false);
        }
        //
        mFSM.SetState(Monster_Idle.GetInstance());

        idleTimeBound = idleTime;
    }