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