void SwitchWeapon() //Change the current weapon { for (int i = 1; i <= Weapons.Count; i++) { if (Input.GetButtonDown("Select_Weapon_" + i)) { actualWeapon = Weapons[i - 1]; ActiveWeapon(); } } }
private void Awake() { actualWeapon = Weapons[0]; SpawnWeaponMesh(); ActiveWeapon(); }