This commit is contained in:
2025-05-10 18:06:44 +08:00
parent e010759358
commit dea9a4f58e
47 changed files with 421 additions and 359 deletions

View File

@@ -46,7 +46,7 @@ namespace Rewired.Demos {
// and re-connected and disable this script
if(DoAllPlayersHaveJoysticks()) {
ReInput.configuration.autoAssignJoysticks = true;
enabled = false; // disable this script
this.enabled = false; // disable this script
}
}

View File

@@ -19,7 +19,7 @@ namespace Rewired.Demos {
private Vector3 moveVector;
private bool fire;
private Player player { get { return ReInput.isReady ? ReInput.players.GetPlayer(playerId) : null; } }
private Rewired.Player player { get { return ReInput.isReady ? ReInput.players.GetPlayer(playerId) : null; } }
void OnEnable() {
// Get the character controller