Adventure Creator  1.66.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.PlayerStart Class Reference
Inheritance diagram for AC.PlayerStart:
AC.Marker

Public Member Functions

void SetPlayerStart ()
 
void SetCameraOnStart ()
 

Public Attributes

ChooseSceneBy chooseSceneBy = ChooseSceneBy.Number
 
int previousScene
 
string previousSceneName
 
bool fadeInOnStart
 
float fadeSpeed = 0.5f
 
_Camera cameraOnStart
 

Additional Inherited Members

- Protected Member Functions inherited from AC.Marker
void Awake ()
 

Detailed Description

Defines a possible starting position for the Player when the scene loads, based on what the previous scene was If no appropriate PlayerStart is found, then the defaultPlayerStart defined in SceneSettings will be used instead.

Member Function Documentation

◆ SetCameraOnStart()

void AC.PlayerStart.SetCameraOnStart ( )

Makes the assigned cameraOnStart the active _Camera.

◆ SetPlayerStart()

void AC.PlayerStart.SetPlayerStart ( )

Places the Player at the GameObject's position, and activates the assigned cameraOnStart.

Member Data Documentation

◆ cameraOnStart

_Camera AC.PlayerStart.cameraOnStart

The _Camera that should be made active when the Player starts the scene from this point

◆ chooseSceneBy

ChooseSceneBy AC.PlayerStart.chooseSceneBy = ChooseSceneBy.Number

The way in which the previous scene is identified by (Number, Name)

◆ fadeInOnStart

bool AC.PlayerStart.fadeInOnStart

If True, then the MainCamera will fade in when the Player starts the scene from this point

◆ fadeSpeed

float AC.PlayerStart.fadeSpeed = 0.5f

The speed of the fade, if the MainCamera fades in when the Player starts the scene from this point

◆ previousScene

int AC.PlayerStart.previousScene

The number of the previous scene to check for

◆ previousSceneName

string AC.PlayerStart.previousSceneName

The name of the previous scene to check for