Infinite Runner Engine v1.9
|
Spawns the player, and More...
Public Member Functions | |
override void | LevelStart () |
Handles the start of the level : starts the autoincrementation of the score, sets the proper status and triggers the corresponding event. More... | |
override void | ResetLevel () |
Resets the level : repops dead characters, sets everything up for a new game More... | |
override void | Update () |
Every frame More... | |
Public Member Functions inherited from MoreMountains.InfiniteRunnerEngine.LevelManager | |
virtual void | SetSpeed (float newSpeed) |
Sets the speed. More... | |
virtual void | AddSpeed (float speedAdded) |
Adds speed to the current level speed More... | |
virtual void | TemporarilyMultiplySpeed (float factor, float duration) |
Temporarily multiplies the level speed by the provided factor More... | |
virtual bool | CheckRecycleCondition (Bounds objectBounds, float destroyDistance) |
Determines if the object whose bounds are passed as a parameter has to be recycled or not. More... | |
virtual bool | CheckDeathCondition (Bounds objectBounds) |
virtual void | GotoLevel (string levelName) |
Gets the player to the specified level More... | |
virtual void | GameOverAction () |
Triggered when all lives are lost and you press the main action button More... | |
virtual void | LifeLostAction () |
Triggered when a life is lost and you press the main action button More... | |
virtual void | KillCharacter (PlayableCharacter player) |
Kills the player. More... | |
Public Attributes | |
List< GameObject > | Backgrounds |
Public Attributes inherited from MoreMountains.InfiniteRunnerEngine.LevelManager | |
GameObject | StartingPosition |
the prefab you want for your player More... | |
List< PlayableCharacter > | PlayableCharacters |
the list of playable characters - use this to tell what characters you want in your level, don't access that at runtime More... | |
float | DistanceBetweenCharacters = 1f |
the x distance between each character More... | |
float | PointsPerSecond = 20 |
the amount of points a player gets per second More... | |
String | InstructionsText |
the text that will be shown (if not empty) at the start of the level More... | |
Bounds | RecycleBounds |
the line after which objects can be recycled More... | |
Bounds | DeathBounds |
the line after which playable characters will die - leave it to zero if you don't want to use it More... | |
float | InitialSpeed = 10f |
the initial speed of the level More... | |
float | MaximumSpeed = 50f |
the maximum speed the level will run at More... | |
float | SpeedAcceleration =1f |
the acceleration (per second) at which the level will go from InitialSpeed to MaximumSpeed More... | |
float | IntroFadeDuration =1f |
duration of the initial fade in More... | |
float | OutroFadeDuration =1f |
duration of the fade to black at the end of the level More... | |
int | StartCountdown |
the duration (in seconds) of the initial countdown More... | |
string | StartText |
the text displayed at the end of the countdown More... | |
Controls | ControlScheme |
the mobile control scheme applied to this level More... | |
GameObject | LifeLostExplosion |
the effect we instantiate when a life is lost More... | |
Protected Member Functions | |
override void | Start () |
Initialization More... | |
virtual void | RandomizeBackground () |
override void | InstantiateCharacters () |
Instantiates all the playable characters and feeds them to the gameManager More... | |
override void | ManageControlScheme () |
Turns buttons on or off depending on the chosen mobile control scheme More... | |
override void | AllCharactersAreDead () |
What happens when all characters are dead (or when the character is dead if you only have one) More... | |
Protected Member Functions inherited from MoreMountains.InfiniteRunnerEngine.LevelManager | |
virtual void | PrepareStart () |
Handles everything before the actual start of the game. More... | |
virtual IEnumerator | PrepareStartCountdown () |
Handles the initial start countdown display More... | |
virtual void | HandleSpeedFactor () |
Called every frame, this modified the current level speed if we're under the effect of a speed factor More... | |
virtual IEnumerator | GotoLevelCo (string levelName) |
Waits for a short time and then loads the specified level More... | |
virtual IEnumerator | KillCharacterCo (PlayableCharacter player) |
Coroutine that kills the player, stops the camera, resets the points. More... | |
virtual void | OnEnable () |
Override this if needed More... | |
virtual void | OnDisable () |
Override this if needed More... | |
Protected Member Functions inherited from MoreMountains.Tools.MMSingleton< LevelManager > | |
virtual void | Awake () |
On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake. More... | |
Additional Inherited Members | |
Public Types inherited from MoreMountains.InfiniteRunnerEngine.LevelManager | |
enum | Controls { SingleButton , LeftRight , Swipe } |
Static Public Member Functions inherited from MoreMountains.Tools.MMSingleton< LevelManager > | |
static T | TryGetInstance () |
Protected Attributes inherited from MoreMountains.InfiniteRunnerEngine.LevelManager | |
DateTime | _started |
float | _savedPoints |
float | _recycleX |
Bounds | _tmpRecycleBounds |
bool | _temporarySpeedFactorActive |
float | _temporarySpeedFactor |
float | _temporarySpeedFactorRemainingTime |
float | _temporarySavedSpeed |
Static Protected Attributes inherited from MoreMountains.Tools.MMSingleton< LevelManager > | |
static T | _instance |
Properties inherited from MoreMountains.InfiniteRunnerEngine.LevelManager | |
float | Speed [getprotected set] |
The current speed the level is traveling at. More... | |
float | DistanceTraveled [getprotected set] |
The distance traveled since the start of the level. More... | |
List< PlayableCharacter > | 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 More... | |
float | RunningTime [getprotected set] |
the elapsed time since the start of the level More... | |
Properties inherited from MoreMountains.Tools.MMSingleton< LevelManager > | |
static bool | HasInstance [get] |
static T | Current [get] |
static T | Instance [get] |
Singleton design pattern More... | |
Spawns the player, and
|
protectedvirtual |
What happens when all characters are dead (or when the character is dead if you only have one)
Reimplemented from MoreMountains.InfiniteRunnerEngine.LevelManager.
|
protectedvirtual |
Instantiates all the playable characters and feeds them to the gameManager
Reimplemented from MoreMountains.InfiniteRunnerEngine.LevelManager.
|
virtual |
Handles the start of the level : starts the autoincrementation of the score, sets the proper status and triggers the corresponding event.
Reimplemented from MoreMountains.InfiniteRunnerEngine.LevelManager.
|
protectedvirtual |
Turns buttons on or off depending on the chosen mobile control scheme
Reimplemented from MoreMountains.InfiniteRunnerEngine.LevelManager.
|
protectedvirtual |
|
virtual |
Resets the level : repops dead characters, sets everything up for a new game
Reimplemented from MoreMountains.InfiniteRunnerEngine.LevelManager.
|
protectedvirtual |
Initialization
Reimplemented from MoreMountains.InfiniteRunnerEngine.LevelManager.
|
virtual |
Every frame
Reimplemented from MoreMountains.InfiniteRunnerEngine.LevelManager.
List<GameObject> MoreMountains.InfiniteRunnerEngine.SkyTheoryLevelManager.Backgrounds |