void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); return; } }
public void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); return; } mgbScript = mgb.GetComponent <MainGameBackend>(); gameLost = mgbScript.gameLost; }