Пример #1
0
 private void Awake()
 {
     if (main == null)
     {
         main = this;
     }
 }
Пример #2
0
        private void Awake()
        {
            if (canvasGroup == null)
            {
                canvasGroup = GetComponent <CanvasGroup>();
            }

            if (environment == null)
            {
                environment = UiEnvironment.Main;
            }
        }
Пример #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);
        }