Esempio n. 1
0
 public AttackState(GameObject gameObject, TankController tankController) : base(gameObject)
 {
     this.tankController    = tankController;
     this.tank              = gameObject;
     this.platoonController = tankController.platoonController;
 }
Esempio n. 2
0
 public EvadeState(GameObject givenGameObject, TankController givenTankController) : base(givenGameObject)
 {
     tankController = givenTankController;
     evadeRadius    = tankController.evadeDistance;
 }
Esempio n. 3
0
 public RegroupState(GameObject gameObject, TankController tankController) : base(gameObject)
 {
     _tankController = tankController;
 }
Esempio n. 4
0
 public PatrolState(GameObject gameObject, TankController tankController) : base(gameObject)
 {
     _tankController       = tankController;
     _wayPoints            = Object.FindObjectOfType <PatrollingWayPoints>().GetComponent <PatrollingWayPoints>().wayPoints;
     _currentWayPointIndex = 0;
 }
Esempio n. 5
0
 public ChaseState(GameObject gameObject, TankController tankController) : base(gameObject)
 {
     this.tankController = tankController;
 }