Пример #1
0
        void Start()
        {
            MGetCamera getCam = new MGetCamera();

            Main.msg.Dispatch(getCam);
            if (getCam.camera == null)
            {
                return;
            }

            Main.msg.RemoveListener <MCameraReady>(OnCameraReady);
            SetupCamera(getCam.camera);
        }
Пример #2
0
 private void OnGetCamera(MGetCamera msg)
 {
     msg.camera = cam;
 }