mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Updated ScriptTemplates
This commit is contained in:
parent
a28ccbb477
commit
d0e493ac92
@ -76,6 +76,17 @@ public class #SCRIPTNAME# : NetworkRoomManager
|
||||
return base.OnRoomServerCreateGamePlayer(conn, roomPlayer);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This allows customization of the creation of the GamePlayer object on the server.
|
||||
/// <para>This is only called for subsequent GamePlay scenes after the first one.</para>
|
||||
/// <para>See OnRoomServerCreateGamePlayer to customize the player object for the initial GamePlay scene.</para>
|
||||
/// </summary>
|
||||
/// <param name="conn">The connection the player object is for.</param>
|
||||
public virtual void OnRoomServerAddPlayer(NetworkConnection conn)
|
||||
{
|
||||
base.OnServerAddPlayer(conn);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This is called on the server when it is told that a client has finished switching from the room scene to a game player scene.
|
||||
/// <para>When switching from the room, the room-player is replaced with a game-player object. This callback function gives an opportunity to apply state from the room-player to the game-player object.</para>
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user