Пример #1
0
        public void Init(LiveController con, float width, float _frameAspect)
        {
            controller = con;

            aspect = (float)Screen.width / (float)Screen.height;

            screenWidth  = width;
            screenHeight = screenWidth / aspect;

            UnityEngine.Debug.Log("Screen=[" + screenWidth + "," + screenHeight + "]");

            frameAspect = _frameAspect;

            LivePreviewPanel = transform as RectTransform;

            RefreshPreview();

            recordText.gameObject.SetActive(false);


            hasInit = true;
        }
Пример #2
0
        // Use this for initialization
        public void Init(LiveController b, float _frameAspect)
        {
            liveController = b;

            InfoDialogText.text = "";
            InfoDialog.SetActive(false);
            ETListener.Get(infoDialogClose.gameObject).onClick = OnCloseInfoDialog;

            CanvasScaler canvasScaler = GetComponent <CanvasScaler>();
            float        screenWidth  = canvasScaler.referenceResolution.x;

            livePreview.Init(liveController, screenWidth, _frameAspect);

            liveUIForms.functionUIForm.Init(b, this);
            socialControl.Init();
            liveUIForms.anchorControlUIForm.Init();
            liveUIForms.hololensAgentUIForm.Init();
            liveUIForms.mediaOperationUIForm.Init();
            liveUIForms.socialUIForm.Init();

            hololensStatusPanel.gameObject.SetActive(false);
        }
Пример #3
0
        // Use this for initialization
        public void Init(LiveController b, float _frameAspect)
        {
            liveController = b;

            InfoDialogText.text = "";
            InfoDialog.SetActive(false);
            EventTriggerListener.Get(infoDialogClose.gameObject).onClick = OnCloseInfoDialog;

            mainPanel.Init(liveController, this);

            CanvasScaler canvasScaler = GetComponent <CanvasScaler>();
            float        screenWidth  = canvasScaler.referenceResolution.x;

            livePreview.Init(liveController, screenWidth, _frameAspect);

            spectatorViewSelectPanel.Init(b, this);
            spectatorViewHololensPanel.Init(b, this);
            hololensStatusPanel.Init(b);

            spectatorViewHololensPanel.gameObject.SetActive(false);
            spectatorViewSelectPanel.gameObject.SetActive(true);

            hololensStatusPanel.gameObject.SetActive(false);
        }
Пример #4
0
 public void Init(LiveController b, LiveControllerUI p)
 {
     liveController = b;
     panel          = p;
 }
Пример #5
0
 public override void Init(LiveController b, LiveControllerUI pannel)
 {
     liveController = b;
     OnStartHololensConnect();
     hasInit = true;
 }
Пример #6
0
 public override void Init()
 {
     base.Init();
     liveController = LiveController.Instance;
 }
Пример #7
0
 public virtual void Init(LiveController b, LiveControllerUI ui)
 {
 }