示例#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);
        }