Beispiel #1
0
    // Use this for initialization
    public override void Start()
    {
        base.Start();

        MyMovementMachine.ChangeState(new StateReach(this));
        MyTargetingMachine.ChangeState(new StateTarget(this));
    }
Beispiel #2
0
 // Use this for initialization
 public override void Start()
 {
     base.Start();
     MyMovementMachine.ChangeState(new StatePatrol(this, myPatrolPath));
     MyTargetingMachine.ChangeState(new StateTarget(this));
 }