Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     if (isSwap)
     {
         isSwap = false;
         StartCoroutine(GetAssetBundle());
     }
     if (isInteractive)
     {
         isInteractive = false;
         ChangeState();
     }
     if (testChangeState)
     {
         testChangeState = false;
         interactive     = new Interactive()
         {
             id = "7b5a3a04-6671-4ab2-be5a-ab8b6f49de3c", state = 1
         };
         ChangeState();
     }
     //if (OVRInput.GetUp(OVRInput.Button.Three) || Input.GetKeyUp(KeyCode.F))
     //{
     //    Debug.LogFormat($"[{GetType().Name}] Test swap");
     //    isSwap = true;
     //    //swap = new Swap { objectId = "8caf001c-dbc2-418d-9bf7-58ca105f16f7", link = "https://uce5f05c49d6d07afd723606dbba.dl.dropboxusercontent.com/cd/0/get/AzNlucZ1A-4dwPUq-7m1rMFg1U9TCQ5zkvryQzszrucgaGBBEwYdonqLXcs7D2IocaGnhbKn2yqoHysiGZMWYRQQXhIb2hTmhd81KPIe6XqBERccchJeS2he03iWy_t9p40/file?dl=1#" };
     //    //swap = new Swap { objectId = "8caf001c-dbc2-418d-9bf7-58ca105f16f7", link = "file:///C:/UnityProjects/Launcher/VRHouse/Assets/AssetBundles/wood_table" };
     //    //swap = new Swap { objectId = "8caf001c-dbc2-418d-9bf7-58ca105f16f7", link = "file:///C:/UnityProjects/Launcher/VRHouse/Assets/AssetBundles/classic_round_table" };
     //    swap = new Swap { objectId = "561d8f02-0c2b-40b0-8c20-5e489e3d8d62", link = "file:///C:/UnityProjects/Launcher/VRHouse/Assets/AssetBundles/classic_chair" };
     //}
 }
Exemple #2
0
 void SetCurrentInteractive(Client.Model.Interactive interactive)
 {
     this.interactive = interactive;
     isInteractive    = true;
 }