![]() |
Adventure Creator
1.76.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
void | PlacePlayerAt () |
bool | MatchesPreviousScene (int _playerID) |
void | SetCameraOnStart () |
override void | DrawGizmos () |
Public Attributes | |
ChooseSceneBy | chooseSceneBy = ChooseSceneBy.Number |
int | previousScene |
string | previousSceneName |
bool | fadeInOnStart |
float | fadeSpeed = 0.5f |
_Camera | cameraOnStart |
List< int > | playerIDs = new List<int> () |
bool | limitByPlayer = false |
PlayerStartActiveOption | limitByActive = PlayerStartActiveOption.NoLimit |
Protected Attributes | |
GameObject | playerOb |
Additional Inherited Members | |
![]() | |
void | Awake () |
void | OnDrawGizmos () |
void | OnDrawGizmosSelected () |
![]() | |
Vector3 | Position [get] |
float | ForwardAngle [get] |
Vector3 | ForwardDirection [get] |
Quaternion | Rotation [get] |
Transform | Transform [get] |
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.
void AC.PlayerStart.PlacePlayerAt | ( | ) |
Places the Player at the GameObject's position, and activates the assigned cameraOnStart.
void AC.PlayerStart.SetCameraOnStart | ( | ) |
Makes the assigned cameraOnStart the active _Camera.
_Camera AC.PlayerStart.cameraOnStart |
ChooseSceneBy AC.PlayerStart.chooseSceneBy = ChooseSceneBy.Number |
If autoActivateFromPrevious = True, the way in which the previous scene is identified by (Number, Name)
bool AC.PlayerStart.fadeInOnStart |
If True, then the MainCamera will fade in when the Player starts the scene from this point
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
PlayerStartActiveOption AC.PlayerStart.limitByActive = PlayerStartActiveOption.NoLimit |
Whether to limit activation by active / inactive Players
bool AC.PlayerStart.limitByPlayer = false |
If True, and player-switching is allowed, then only specific Players can use this from previous scenes
List<int> AC.PlayerStart.playerIDs = new List<int> () |
If >= 0, and player-switching is allowed, then this will only be used to automatically place the Player with the same ID value
int AC.PlayerStart.previousScene |
The number of the previous scene to check for
string AC.PlayerStart.previousSceneName |
The name of the previous scene to check for