Eventy upraveny pro podporu dvou hráčů. Všechny dveře se zobrazují na správných pozicích pro oba hráče.
This commit is contained in:
parent
cea56112ea
commit
3049417914
18 changed files with 157 additions and 75 deletions
|
|
@ -115,14 +115,10 @@ public class Server {
|
|||
}
|
||||
else{
|
||||
P2 = newPlayer;
|
||||
SendPacket(new OpponentInitPacket{state = newPlayer.state}, P1.peer);
|
||||
SendPacket(new OpponentInitPacket{state = P1.state}, P2.peer);
|
||||
GameLogic.Init(); // TODO: move this to the condition above to wait for the other player
|
||||
}
|
||||
|
||||
|
||||
GameLogic.Init(); // TODO: move this to the condition above to wait for the other player
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static void OnNetworkReceive(NetPeer peer, NetPacketReader reader, DeliveryMethod deliveryMethod) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue