C# 클래스 NetworkLevelLoader, PaperCowboys

상속: MonoBehaviour
파일 보기 프로젝트 열기: Gamieon/PaperCowboys 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Awake void
EnsureGroupInternal void
LoadLevelInternal void
OnLevelWasLoaded void
RPCLoadLevel void
RPCLoadLevel void

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

EnsureGroup() 공개 정적인 메소드

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

LoadLevel() 공개 정적인 메소드

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

ResetLevelPrefix() 공개 정적인 메소드

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
리턴 void