Esempio n. 1
0
 public AttackingState(F_TankController NPC)
 {
     stateID = StateID.Attacking;
     myController = NPC;
     mySensor = myController.GetComponentInChildren<F_PasiveSensor>();
     myNav = myController.GetComponent<NavMeshAgent>();
     myTargetting = myController.GetComponent<F_Targetting>();
     myAttack = myController.GetComponent<TankMinionAttack>();
 }
Esempio n. 2
0
 public DestroyedState(F_TankController NPC)
 {
     stateID = StateID.Destroyed;
     myController = NPC;
     mySensor = myController.GetComponentInChildren<F_PasiveSensor>();
     myNav = myController.GetComponent<NavMeshAgent>();
     myTargetting = myController.GetComponent<F_Targetting>();
     myAttack = myController.GetComponent<TankMinionAttack>();
     myStats = myController.GetComponent<F_Stats>();
     myControlMode = myController.GetComponent<F_ControlMode>();
 }