Skip to content

Instantly share code, notes, and snippets.

@alexson
Last active January 13, 2022 09:33
Show Gist options
  • Save alexson/e13e41dc403c927f43e56a17351b0e3d to your computer and use it in GitHub Desktop.
Save alexson/e13e41dc403c927f43e56a17351b0e3d to your computer and use it in GitHub Desktop.
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