public void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(this); } else { if (this != _instance) { Destroy(this.gameObject); } } UpdatePlaceholder(inputFieldInclude.placeholder.GetComponent <Text>(), "Include..."); UpdatePlaceholder(inputFieldExclude.placeholder.GetComponent <Text>(), "Exclude..."); // buttonShow.gameObject.SetActive (!VisibleContentGameObject.activeSelf); // togglePause.isOn = paused; }
public void Awake() { if (_instance == null) { _instance = this; DontDestroyOnLoad(this); } else { if (this != _instance) { Destroy(this.gameObject); } } UpdatePlaceholder(inputFieldInclude.placeholder.GetComponent<Text>(), "Include..."); UpdatePlaceholder(inputFieldExclude.placeholder.GetComponent<Text>(), "Exclude..."); // buttonShow.gameObject.SetActive (!VisibleContentGameObject.activeSelf); // togglePause.isOn = paused; }