Spawns the player, and
More...
◆ Controls
Enumerator |
---|
SingleButton | |
LeftRight | |
Swipe | |
◆ AddSpeed()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.AddSpeed |
( |
float |
speedAdded | ) |
|
|
virtual |
Adds speed to the current level speed
- Parameters
-
◆ AllCharactersAreDead()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.AllCharactersAreDead |
( |
| ) |
|
|
protectedvirtual |
◆ CheckDeathCondition()
virtual bool MoreMountains.InfiniteRunnerEngine.LevelManager.CheckDeathCondition |
( |
Bounds |
objectBounds | ) |
|
|
virtual |
◆ CheckRecycleCondition()
virtual bool MoreMountains.InfiniteRunnerEngine.LevelManager.CheckRecycleCondition |
( |
Bounds |
objectBounds, |
|
|
float |
destroyDistance |
|
) |
| |
|
virtual |
Determines if the object whose bounds are passed as a parameter has to be recycled or not.
- Returns
true
, if the object has to be recycled, false
otherwise.
- Parameters
-
objectBounds | Object bounds. |
destroyDistance | The x distance after which the object will get destroyed. |
◆ GameOverAction()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.GameOverAction |
( |
| ) |
|
|
virtual |
Triggered when all lives are lost and you press the main action button
◆ GotoLevel()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.GotoLevel |
( |
string |
levelName | ) |
|
|
virtual |
Gets the player to the specified level
- Parameters
-
◆ GotoLevelCo()
virtual IEnumerator MoreMountains.InfiniteRunnerEngine.LevelManager.GotoLevelCo |
( |
string |
levelName | ) |
|
|
protectedvirtual |
Waits for a short time and then loads the specified level
- Returns
- The level co.
- Parameters
-
◆ HandleSpeedFactor()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.HandleSpeedFactor |
( |
| ) |
|
|
protectedvirtual |
Called every frame, this modified the current level speed if we're under the effect of a speed factor
◆ InstantiateCharacters()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.InstantiateCharacters |
( |
| ) |
|
|
protectedvirtual |
Instantiates all the playable characters and feeds them to the gameManager
we go through the list of playable characters and instantiate them while adding them to the list we'll use from any class to access the currently playable characters
Reimplemented in MoreMountains.InfiniteRunnerEngine.SkyTheoryLevelManager.
◆ KillCharacter()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.KillCharacter |
( |
PlayableCharacter |
player | ) |
|
|
virtual |
◆ KillCharacterCo()
virtual IEnumerator MoreMountains.InfiniteRunnerEngine.LevelManager.KillCharacterCo |
( |
PlayableCharacter |
player | ) |
|
|
protectedvirtual |
Coroutine that kills the player, stops the camera, resets the points.
- Returns
- The player co.
◆ LevelStart()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.LevelStart |
( |
| ) |
|
|
virtual |
◆ LifeLostAction()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.LifeLostAction |
( |
| ) |
|
|
virtual |
Triggered when a life is lost and you press the main action button
◆ ManageControlScheme()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.ManageControlScheme |
( |
| ) |
|
|
protectedvirtual |
◆ OnDisable()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.OnDisable |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.OnEnable |
( |
| ) |
|
|
protectedvirtual |
◆ PrepareStart()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.PrepareStart |
( |
| ) |
|
|
protectedvirtual |
Handles everything before the actual start of the game.
◆ PrepareStartCountdown()
virtual IEnumerator MoreMountains.InfiniteRunnerEngine.LevelManager.PrepareStartCountdown |
( |
| ) |
|
|
protectedvirtual |
Handles the initial start countdown display
- Returns
- The start countdown.
◆ ResetLevel()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.ResetLevel |
( |
| ) |
|
|
virtual |
◆ SetSpeed()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.SetSpeed |
( |
float |
newSpeed | ) |
|
|
virtual |
Sets the speed.
- Parameters
-
◆ Start()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.Start |
( |
| ) |
|
|
protectedvirtual |
◆ TemporarilyMultiplySpeed()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.TemporarilyMultiplySpeed |
( |
float |
factor, |
|
|
float |
duration |
|
) |
| |
|
virtual |
Temporarily multiplies the level speed by the provided factor
- Parameters
-
factor | The number of times you want to increase/decrease the speed by. |
duration | The duration of the speed change, in seconds. |
◆ Update()
virtual void MoreMountains.InfiniteRunnerEngine.LevelManager.Update |
( |
| ) |
|
|
virtual |
◆ _recycleX
float MoreMountains.InfiniteRunnerEngine.LevelManager._recycleX |
|
protected |
◆ _savedPoints
float MoreMountains.InfiniteRunnerEngine.LevelManager._savedPoints |
|
protected |
◆ _started
DateTime MoreMountains.InfiniteRunnerEngine.LevelManager._started |
|
protected |
◆ _temporarySavedSpeed
float MoreMountains.InfiniteRunnerEngine.LevelManager._temporarySavedSpeed |
|
protected |
◆ _temporarySpeedFactor
float MoreMountains.InfiniteRunnerEngine.LevelManager._temporarySpeedFactor |
|
protected |
◆ _temporarySpeedFactorActive
bool MoreMountains.InfiniteRunnerEngine.LevelManager._temporarySpeedFactorActive |
|
protected |
◆ _temporarySpeedFactorRemainingTime
float MoreMountains.InfiniteRunnerEngine.LevelManager._temporarySpeedFactorRemainingTime |
|
protected |
◆ _tmpRecycleBounds
Bounds MoreMountains.InfiniteRunnerEngine.LevelManager._tmpRecycleBounds |
|
protected |
◆ ControlScheme
Controls MoreMountains.InfiniteRunnerEngine.LevelManager.ControlScheme |
the mobile control scheme applied to this level
◆ DeathBounds
Bounds MoreMountains.InfiniteRunnerEngine.LevelManager.DeathBounds |
the line after which playable characters will die - leave it to zero if you don't want to use it
◆ DistanceBetweenCharacters
float MoreMountains.InfiniteRunnerEngine.LevelManager.DistanceBetweenCharacters = 1f |
the x distance between each character
◆ InitialSpeed
float MoreMountains.InfiniteRunnerEngine.LevelManager.InitialSpeed = 10f |
the initial speed of the level
◆ InstructionsText
String MoreMountains.InfiniteRunnerEngine.LevelManager.InstructionsText |
the text that will be shown (if not empty) at the start of the level
◆ IntroFadeDuration
float MoreMountains.InfiniteRunnerEngine.LevelManager.IntroFadeDuration =1f |
duration of the initial fade in
◆ LifeLostExplosion
GameObject MoreMountains.InfiniteRunnerEngine.LevelManager.LifeLostExplosion |
the effect we instantiate when a life is lost
◆ MaximumSpeed
float MoreMountains.InfiniteRunnerEngine.LevelManager.MaximumSpeed = 50f |
the maximum speed the level will run at
◆ OutroFadeDuration
float MoreMountains.InfiniteRunnerEngine.LevelManager.OutroFadeDuration =1f |
duration of the fade to black at the end of the level
◆ PlayableCharacters
List<PlayableCharacter> MoreMountains.InfiniteRunnerEngine.LevelManager.PlayableCharacters |
the list of playable characters - use this to tell what characters you want in your level, don't access that at runtime
◆ PointsPerSecond
float MoreMountains.InfiniteRunnerEngine.LevelManager.PointsPerSecond = 20 |
the amount of points a player gets per second
◆ RecycleBounds
Bounds MoreMountains.InfiniteRunnerEngine.LevelManager.RecycleBounds |
the line after which objects can be recycled
◆ SpeedAcceleration
float MoreMountains.InfiniteRunnerEngine.LevelManager.SpeedAcceleration =1f |
the acceleration (per second) at which the level will go from InitialSpeed to MaximumSpeed
◆ StartCountdown
int MoreMountains.InfiniteRunnerEngine.LevelManager.StartCountdown |
the duration (in seconds) of the initial countdown
◆ StartingPosition
GameObject MoreMountains.InfiniteRunnerEngine.LevelManager.StartingPosition |
the prefab you want for your player
◆ StartText
string MoreMountains.InfiniteRunnerEngine.LevelManager.StartText |
the text displayed at the end of the countdown
◆ CurrentPlayableCharacters
List<PlayableCharacter> MoreMountains.InfiniteRunnerEngine.LevelManager.CurrentPlayableCharacters |
|
getset |
the list of playable characters currently instantiated in the game - use this to know what characters ARE currently in your level at runtime
◆ DistanceTraveled
float MoreMountains.InfiniteRunnerEngine.LevelManager.DistanceTraveled |
|
getprotected set |
The distance traveled since the start of the level.
◆ RunningTime
float MoreMountains.InfiniteRunnerEngine.LevelManager.RunningTime |
|
getprotected set |
the elapsed time since the start of the level
◆ Speed
float MoreMountains.InfiniteRunnerEngine.LevelManager.Speed |
|
getprotected set |
The current speed the level is traveling at.
The documentation for this class was generated from the following file: