예제 #1
0
    void IDobermanState.Execute()
    {
        Idle();

        if (doberman.Target != null)
        {
            doberman.ChangeState(new DobermanMeeleeState());
        }
    }
예제 #2
0
    public void Execute()
    {
        Patrol();

        doberman.Move();

        if (doberman.Target != null)
        {
            doberman.ChangeState(new DobermanMeeleeState());
        }
    }
예제 #3
0
    void IDobermanState.Execute()
    {
        //Throw();

        if (doberman.Target != null)
        {
            //doberman.Move();
            doberman.MyAnimator.SetTrigger("attack");
        }
        else
        {
            doberman.ChangeState(new DobermanIdleState());
        }
    }