Problems
We have this work routine of the VR experience . We first build the Environment and merge them together. Then working on the interactibvity seperately in different unity project to make sure there’s one working copy. After that we will do that in the unity.
But the problem is, I didn’t set up vr headset in every empty project (mainly because of we use different vr plug-in , but there’re some bugs will show up when I changed to camera to xr rig. I give the tag “player “to the camera and it only coillde with the camera will trigger the particle effect. But somehow it didn’t work with the Xr Rig.
And also the player is in the perspective of the bird .We actually changed the camera size that cause the value of all the objects in the world is not big (just looks big )because of the Mini Gane is about spawning ice cream on the cart. I used the Random.range to let it spawn in the randow position. In that case, the spawn position only can be the integar. Then the problem is it will never show in the right position because the cart is also small.
What’s more, this ice cream I used the asset in the all work project instead of import the fbx I used in my empty project. Which caused I didn’t know the item pivot has change a lot. It cause a lot trouble to me I was test the spawn position. I have to keep test the position.
Solution
There’s not much things we can do, but only size up the cart a bit and create the empty project of the prefeb to change the pivot and keep test it.
And for the destroy particle effect, I asked Zan to help to look at it . When we try the triggerenter instead of the collisionenter it works.
Finally it worked.
In this minigame, I think it will be easier to use the eventmanager but I wasn’t know until I write all the script based on the timer.
I will intergate at it later
Sound Effect
The last thing to finish this interactivity is to add the sound effect. We have this BGM for the mini game which require me to switch the background on triggerenter. And also I edited a bit of the eating icecream sound effect so that everytime I ated the ice cream will have the effect that particle explorsion and eating.

And the basic game construction is done!
