Humanoid Control for Unity v4
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Passer.SceneManager Class Reference

Description

The scene manager synchronizes scene changes with humanoids across a network.

Inherits MonoBehaviourPunCallbacks public class SceneManager Photon.MonoBehaviourRequireComponenttypeofNetworkIdentity public class SceneManager NetworkBehaviour public class SceneManager MonoBehaviour.

Public Member Functions

void LoadScene (int sceneId)
 Load the scene and causes a scene change.
 
void NextScene ()
 Changes the scene to the next scene in the list.
 
void PreviousScene ()
 Changes the scene to the previous scene in the list.
 

Static Public Member Functions

static int mod (int k, int n)
 

Public Attributes

int currentScene = 0
 The index of the current scene.
 
string[] sceneNames
 The list of scenes from the Build Settings.
 
bool dontDestroyOnLoad = false
 Will prevent the scene manager from being destroyed when the scene changes.
 

Protected Member Functions

virtual void Awake ()
 

Member Function Documentation

◆ LoadScene()

void Passer.SceneManager.LoadScene ( int  sceneId)

Load the scene and causes a scene change.

Parameters
sceneIdThe index of the new scene in the list of scenes

◆ NextScene()

void Passer.SceneManager.NextScene ( )

Changes the scene to the next scene in the list.

This will wrap around when the last scene in the list has been reached.

◆ PreviousScene()

void Passer.SceneManager.PreviousScene ( )

Changes the scene to the previous scene in the list.

This will wrap aorund when the first scene in the list has been reached.


The documentation for this class was generated from the following file: