void Awake() { if (_instance != null && _instance != this) { Destroy(this.gameObject); } else { _instance = this; } }
// Use this for initialization void Start() { search.onValueChange.AddListener(delegate { ValueChangeCheck(); }); worldManager = FindObjectOfType <WorldContentManager>(); }