Esempio n. 1
0
 private void Awake()
 {
     if (main == null)
     {
         main = this;
     }
 }
Esempio n. 2
0
        private void Awake()
        {
            if (canvasGroup == null)
            {
                canvasGroup = GetComponent <CanvasGroup>();
            }

            if (environment == null)
            {
                environment = UiEnvironment.Main;
            }
        }
Esempio n. 3
0
        private void Start()
        {
            if (contentParent == null)
            {
                contentParent = transform as RectTransform;
            }
            if (searchbar == null)
            {
                searchbar = GetComponentInChildren <InputField>();
            }

            if (environment == null)
            {
                environment = UiEnvironment.Main;
            }

            Activate(null);
        }