예제 #1
0
        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;
        }
예제 #2
0
        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;
        }