void Awake() { if (_instance == null) { _instance = this; } else { Destroy(gameObject); } gameText.text = gameText.text = kind_ofgame[index_of_game]; }
private void Awake() { instance = this; DontDestroyOnLoad(gameObject); }