mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-29 20:52:10 +01:00
Weapon switching
This commit is contained in:
@@ -36,7 +36,7 @@ public class WeaponManager : NetworkBehaviour
|
|||||||
currentWeaponIndex--;
|
currentWeaponIndex--;
|
||||||
}
|
}
|
||||||
counter++;
|
counter++;
|
||||||
Debug.Log(activeWeapons[currentWeaponIndex]);
|
//Debug.Log(activeWeapons[currentWeaponIndex]);
|
||||||
} while (activeWeapons[currentWeaponIndex] == null);
|
} while (activeWeapons[currentWeaponIndex] == null);
|
||||||
}
|
}
|
||||||
else if (Input.GetAxis("Mouse ScrollWheel") < 0f){ // Scroll down
|
else if (Input.GetAxis("Mouse ScrollWheel") < 0f){ // Scroll down
|
||||||
@@ -51,7 +51,7 @@ public class WeaponManager : NetworkBehaviour
|
|||||||
currentWeaponIndex++;
|
currentWeaponIndex++;
|
||||||
}
|
}
|
||||||
counter++;
|
counter++;
|
||||||
Debug.Log(activeWeapons[currentWeaponIndex]);
|
//Debug.Log(activeWeapons[currentWeaponIndex]);
|
||||||
} while (activeWeapons[currentWeaponIndex] == null);
|
} while (activeWeapons[currentWeaponIndex] == null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user