/// <summary> /// Initialise /// </summary> private void Init() { // Grab our weapon handler mWeaponHandler = GetComponent <TankWeaponHandler>(); // We are not cooling down mIsCoolingDown = false; }
/// <summary> /// Initialise this component /// </summary> private void Init() { // Grab our components mTankWeaponHandlerHandler = GetComponent <TankWeaponHandler>(); mHealth = GetComponent <Health>(); // If we do not have a weapon attached then return out if (!mTankWeaponHandlerHandler) { return; } // Set we can shoot mCanShoot = true; // Get our next timer value DetermineNextFrequency(); }
private void Awake() { // Get our weapon handler mTankWeaponHandler = GetComponent <TankWeaponHandler>(); }
private void Awake() { // Garb our components mTankMovement = GetComponent <TankMovement>(); mTankWeaponHandlerHandler = GetComponent <TankWeaponHandler>(); }