Documentation of project (Overleaf): https://www.overleaf.com/read/dyfdzcmgyqdx
########################### Istructions for Unity ########################
Istructions for launching on Unity
Requirements : Unity
- Launch the engine
- Click on Open (on top-right)
- Select the directory "progetto-risiko-2-team2"
- On Project section go the folder Assets>Scenes
- Click the Scene : "Lobby";
- Click the play button (the triangle button on top)
Istruction for changing the Server IP Address and port number (from point 3 of "Istruction for launching Unity")
- Go to the folder Assets\scripts\server
- Open the ClientTcp file
- In the "InizializzaNetwork" method you'll find the port number and ip address of the server
- Edit them in order to match the desired configuration
- Save it
- Now you'll be able to create the launchable webapp, (see "Istruction for creating a webApp from Unity ")
Istruction for creating a webApp from Unity (from point 3 of "Istruction for launching on Unity", after "Istruction for changing the Server IP Address and port number ")
- Open the file dropdown menu and select build settings
- Drag and drop all scene onto the new window
- In the right bottom corner check WebGl application then press build and run
- Choose a folder and start the process
- After the process ended you'll find a .html file in the folder of your choice you'll be able to play on that file