void IDobermanState.Execute() { Idle(); if (doberman.Target != null) { doberman.ChangeState(new DobermanMeeleeState()); } }
public void Execute() { Patrol(); doberman.Move(); if (doberman.Target != null) { doberman.ChangeState(new DobermanMeeleeState()); } }
void IDobermanState.Execute() { //Throw(); if (doberman.Target != null) { //doberman.Move(); doberman.MyAnimator.SetTrigger("attack"); } else { doberman.ChangeState(new DobermanIdleState()); } }