示例#1
0
        public float timerCancelFireAfterReload = 0.5f; // Timer set

        void Awake()
        {
            playerAmmo       = gameObject.GetComponent <PlayerAmmo>();
            assaultRifle     = gameObject.GetComponent <WeaponAssaultRifle>();
            playerController = gameObject.GetComponent <PlayerController>();
        }
 // Use this for initialization
 void Start()
 {
     playerAmmo = gameObject.GetComponent<PlayerAmmo>();
     assaultRifle = gameObject.GetComponent<WeaponAssaultRifle>();
 }
        public float timerCancelFireAfterReload = 0.5f; // Timer set

        void Awake()
        {
            playerAmmo = gameObject.GetComponent<PlayerAmmo>();
            assaultRifle = gameObject.GetComponent<WeaponAssaultRifle>();
            playerController = gameObject.GetComponent<PlayerController>();
        }