void Awake() { player = GetComponent <Player>(); weps = GetComponent <PlayerWeapons>(); gun = GetComponent <GunMove>(); menu = FindObjectOfType <MainMenu>(); }
void Awake() { maxAmmo[0] = 10; maxAmmo[1] = 30; maxAmmo[2] = 5; //Set current ammo to max ammo and reloading status for all weapons to false for (int i = 0; i < curAmmo.Length; i++) { curAmmo[i] = maxAmmo[i]; reloading[i] = false; } gun = GetComponent <GunMove>(); }