NetManager.CloseRoom C# (CSharp) Method

CloseRoom() public method

public CloseRoom ( ) : void
return void
	public void CloseRoom () {

		// The room is closed when the game begins so that other players will not be able to join an in-progress game
		Emit ("closeRoom", connection.roomId);
	}

Usage Example

コード例 #1
0
 public void GameStarted()
 {
     if (Hosting)
     {
         net.CloseRoom();
     }
 }