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

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