void Awake() { if (player_inputs.instance == null) { player_inputs.instance = this; } else { Destroy(this.gameObject); } // else } // fin del Awake
private void Awake() { if (instance == null) { instance = this; } else { Destroy(this.gameObject); } }