Пример #1
0
    // Use this for initialization
    public override void Start()
    {
        base.Start();

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