S5-VR-Game / game

2 stars 0 forks source link

Timeline camera fix #96

Closed MarianK99 closed 10 months ago

MarianK99 commented 10 months ago

This PR adds a general script (TimeLineManager) to manage the correct play of the used timelines in the game. Also the user can look in vr in all directions and isn't linked to a static camera. At the moment, there isn't a cutscene for losing the game. I used the exististing timeline (win) for both outcomes. Afterwards it only must be changed in the TimeLineManager-GameObject in the scene, so that the timeline for losing is dragged into the right reference in the script itself.

NOTE: The Keyboard-Player will probably fall and doesn't hold its position in the timelines. If you want me to fix this for tomorrow, contact me please :) Also both timelines at the end (losing or winning the game) will trigger automatically when the GameState is set to GameWin or GameLost in the GameInformation-script. For the winning-timeline there will be an extra condition like a detector, if the player is the room where he should get out of the spacestation. This will be added the next days after thinking about good possible ways to do that.