예제 #1
0
        void LoadComplete()
        {
            var mr_UICamera = gameObject.GetComponentInChildren <UICamera>();

            for (int i = 0; i < _CameraCount; i++)
            {
                mr_UICamera.Setup(i);
                CanvasObjs.Add(mr_UICamera._Canvas[i].gameObject);
            }

            UIManager.Instance.SetCanvasObj(CanvasObjs, true);

            SetResourceLoadComplete();
        }
예제 #2
0
        void LoadComplete()
        {
            var projection_UICamera = gameObject.GetComponentInChildren <UICamera>();

            for (int i = 0; i < Projetion_UICameraCount; i++)
            {
                projection_UICamera.Setup(i);
                CanvasObjs.Add(projection_UICamera._Canvas[i].gameObject);
            }

            if (useKiosk)
            {
                CanvasObjs.Add(projection_UICamera._KioskCanvas.gameObject);
            }

            UIManager.Instance.SetCanvasObj(CanvasObjs, true);

            SetResourceLoadComplete();
        }
예제 #3
0
        void LoadComplete(Object o)
        {
            for (int i = 0; i < _CameraCount; i++)
            {
                var obj = Instantiate(o) as GameObject;
                obj.SetActive(true);
                obj.transform.SetParent(this.transform);
                obj.transform.localPosition = Vector3.zero;
                obj.name = string.Format("{0}_{1}", o.name, i + 1);

                var uiCamera = obj.GetComponent <UICamera>();
                uiCamera.Setup(i);

                CanvasObjs.Add(uiCamera._Canvas[0].gameObject);
            }

            UIManager.Instance.SetCanvasObj(CanvasObjs);

            SetResourceLoadComplete();
        }