C# Class NetworkLevelLoader, PaperCowboys

Inheritance: MonoBehaviour
显示文件 Open project: Gamieon/PaperCowboys Class Usage Examples

Private Properties

Property Type Description
Awake void
EnsureGroupInternal void
LoadLevelInternal void
OnLevelWasLoaded void
RPCLoadLevel void
RPCLoadLevel void

Public Methods

Method Description
EnsureGroup ( ) : void

Called by any client before they join a game to ensure this component is operating on channel 1.

LoadLevel ( string sceneName ) : void

Called by the master client to load a level by name

ResetLevelPrefix ( ) : void

Called by any client before they join a game to reset the last level prefix. The last level prefix is a number that increments every time a level is loaded since the time a game is joined or created.

Private Methods

Method Description
Awake ( ) : void
EnsureGroupInternal ( ) : void

Ensures we do everything on channel 1

LoadLevelInternal ( string sceneName ) : void

Called by the static LoadLevel function to load a level (this is state-based)

OnLevelWasLoaded ( int level ) : void
RPCLoadLevel ( string sceneName, int levelPrefix ) : void
RPCLoadLevel ( string sceneName, short levelPrefix ) : void

Method Details

EnsureGroup() public static method

Called by any client before they join a game to ensure this component is operating on channel 1.
public static EnsureGroup ( ) : void
return void

LoadLevel() public static method

Called by the master client to load a level by name
public static LoadLevel ( string sceneName ) : void
sceneName string /// Scene name. ///
return void

ResetLevelPrefix() public static method

Called by any client before they join a game to reset the last level prefix. The last level prefix is a number that increments every time a level is loaded since the time a game is joined or created.
public static ResetLevelPrefix ( ) : void
return void