// 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); }
// 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); }