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; }
// 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); }
// 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); }
public void Init(LiveController b, LiveControllerUI p) { liveController = b; panel = p; }
public override void Init(LiveController b, LiveControllerUI pannel) { liveController = b; OnStartHololensConnect(); hasInit = true; }
public override void Init() { base.Init(); liveController = LiveController.Instance; }
public virtual void Init(LiveController b, LiveControllerUI ui) { }