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>(); }
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>(); }