private void Awake() { if (instance == null) { DontDestroyOnLoad(gameObject); instance = this; } else { Destroy(gameObject); } }
private void Awake() { if (Instance != null) { Destroy(gameObject); } else { Instance = this; } GamePlayerCtrl.Instance.Event_Over_Game += Reset; Init_Key(); }