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

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