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