Puuuuush
This commit is contained in:
@@ -94,15 +94,18 @@ public class StartHandler : MonoBehaviour
|
||||
Stream stream = client.GetStream();
|
||||
byte[] readMessage = new byte[10];
|
||||
|
||||
stream.Write(new byte[]{4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
|
||||
stream.Write(new byte[]{4, 0, 0, 0, 0, 0, 0, 0, 0, 0});
|
||||
|
||||
stream.Read(readMessage, 0, 10);
|
||||
|
||||
string s = Encoding.ASCII.GetString(readMessage);
|
||||
Debug.Log(s);
|
||||
|
||||
PlayerPrefs.SetString("roomcode", s);
|
||||
PlayerPrefs.Save();
|
||||
SceneManager.LoadScene(1, LoadSceneMode.Single);
|
||||
|
||||
stream.Close();
|
||||
}
|
||||
|
||||
public void ButtonJoin()
|
||||
|
||||
Generated
+1
-1
@@ -98,7 +98,7 @@
|
||||
<workItem from="1680352829832" duration="680000" />
|
||||
<workItem from="1680353695912" duration="624000" />
|
||||
<workItem from="1680470998642" duration="1402000" />
|
||||
<workItem from="1681130452664" duration="2086000" />
|
||||
<workItem from="1681130452664" duration="3287000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -179,6 +179,7 @@ public class Server
|
||||
byte[] tempRoomCode = generateRoomCode();
|
||||
Room tempRoom = new Room(new String(tempRoomCode, StandardCharsets.US_ASCII), server);
|
||||
publicRooms.add(tempRoom);
|
||||
rooms.put(new String(tempRoomCode, StandardCharsets.US_ASCII), tempRoom);
|
||||
output.write(tempRoomCode);
|
||||
|
||||
System.out.println("Room " + new String(tempRoomCode, StandardCharsets.US_ASCII) + " successfully created!");
|
||||
|
||||
Reference in New Issue
Block a user