Esempio n. 1
0
        /// <summary>
        /// Initialise
        /// </summary>
        private void Init()
        {
            // Grab our weapon handler
            mWeaponHandler = GetComponent <TankWeaponHandler>();

            // We are not cooling down
            mIsCoolingDown = false;
        }
Esempio n. 2
0
        /// <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();
        }
Esempio n. 3
0
 private void Awake()
 {
     // Get our weapon handler
     mTankWeaponHandler = GetComponent <TankWeaponHandler>();
 }
Esempio n. 4
0
 private void Awake()
 {
     // Garb our components
     mTankMovement             = GetComponent <TankMovement>();
     mTankWeaponHandlerHandler = GetComponent <TankWeaponHandler>();
 }