示例#1
0
        // Code that runs on entering the state.
        public override void OnEnter()
        {
            WsGlbMediaFile newloadglb = new WsGlbMediaFile {
                url          = Glb_url.Value,
                sign         = Glb_sign.Value,
                isscene      = Glb_isScene.Value,
                LoadTrasform = Glb_LoadTransform.Value.transform
            };

            MessageDispatcher.SendMessage(this, VrDispMessageType.LoadGlbModels.ToString(), newloadglb, 0);
            MessageDispatcher.AddListener(VrDispMessageType.LoadGlbModelsDone.ToString(), LoadGlbModelsDone);
        }
示例#2
0
        // Code that runs on entering the state.
        public override void OnEnter()
        {
            WsGlbMediaFile newloadglb = new WsGlbMediaFile {
                url          = Glb_url.Value,
                sign         = Glb_sign.Value,
                isscene      = Glb_isScene.Value,
                format       = Glb_Format.Value == ""?"glb":Glb_Format.Value,
                LoadTrasform = Glb_LoadTransform.Value.transform,
                isasyn       = Glb_isSyncLoad.Value,
                autoinit     = GlbAutoInit.Value,
                autoplay     = GlbAutoPlay.Value
            };

            MessageDispatcher.SendMessage(this, VrDispMessageType.LoadGlbModels.ToString(), newloadglb, 0);
            MessageDispatcher.AddListener(VrDispMessageType.LoadGlbModelsDone.ToString(), LoadGlbModelsDone);
        }