예제 #1
0
        private void SetUpViews()
        {
            UIOverViewGO = new GameObject();
            UIOverViewGO = UIOverView.AddUIOverViewCompnent(UIOverViewGO, GameManager, Canvas);
            UIOverView = UIOverViewGO.GetComponent<UIOverView>();

            UICityViewGO = new GameObject();
            UICityViewGO = UICityView.AddUICityViewCompnent(UICityViewGO, GameManager, Canvas);
            UICityView = UICityViewGO.GetComponent<UICityView>();

            UITurnViewGO = new GameObject();
            UITurnViewGO = UITurnView.AddUITurnViewCompnent(UITurnViewGO, GameManager, Canvas);
        }
예제 #2
0
        public static GameObject AddUIOverViewCompnent(GameObject objectAddingUIOverViewTo, GameManager gameManager,
                                                       GameObject canvas)
        {
            objectAddingUIOverViewTo.SetActive(false);

            UIOverView uiOverView = objectAddingUIOverViewTo.AddComponent <UIOverView>() as UIOverView;

            uiOverView.GameManager = gameManager;
            uiOverView.Canvas      = canvas;
            objectAddingUIOverViewTo.SetActive(true);

            return(objectAddingUIOverViewTo);
        }
예제 #3
0
        private void SetUpViews()
        {
            UIOverViewGO = new GameObject();
            UIOverViewGO = UIOverView.AddUIOverViewCompnent(UIOverViewGO, GameManager, Canvas);
            UIOverView   = UIOverViewGO.GetComponent <UIOverView>();

            UICityViewGO = new GameObject();
            UICityViewGO = UICityView.AddUICityViewCompnent(UICityViewGO, GameManager, Canvas);
            UICityView   = UICityViewGO.GetComponent <UICityView>();

            UITurnViewGO = new GameObject();
            UITurnViewGO = UITurnView.AddUITurnViewCompnent(UITurnViewGO, GameManager, Canvas);
        }