コード例 #1
0
ファイル: UiEnvironment.cs プロジェクト: klaro115/DungeonDB
 private void Awake()
 {
     if (main == null)
     {
         main = this;
     }
 }
コード例 #2
0
ファイル: UiWorkspace.cs プロジェクト: klaro115/DungeonDB
        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);
        }