Last active
January 13, 2022 09:33
-
-
Save alexson/e13e41dc403c927f43e56a17351b0e3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case MessageType.GameState: | |
if (_networking.Host.Identifier != _networking.Self.Identifier) | |
{ | |
switch (_receivedString) | |
{ | |
case "Start": | |
Debug.Log("Game Start"); | |
GameVal.gc.ClientStartGame(); | |
break; | |
case "Restart": | |
Debug.Log("Restart"); | |
GameVal.gc.GameRestart(); | |
break; | |
case "Reset": | |
Debug.Log("Reset"); | |
GameVal.gc.GameReset(); | |
break; | |
} | |
} | |
break; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment