Infinite Runner Engine v2.2
Loading...
Searching...
No Matches
MoreMountains.InfiniteRunnerEngine.Map Class Reference

This class handles the level selection map. It's pretty specific, you'll probably want to code your own to fit your own level selection needs. More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.Map:
MoreMountains.Tools.MMSingleton< T >

Public Member Functions

virtual void GoToLevel (string levelName)
 Loads the level specified in parameters (usually called via MapButton.cs in our case)
virtual void RestartLevel ()
 Restarts the current level.

Public Attributes

ParticleSystem ActiveLevelParticleEmitter
 The particle system that signals what level is currently selected.
Text LevelNameText
 The text object that will actually display the.

Protected Member Functions

virtual void Update ()
 On each frame, we check for input.
Protected Member Functions inherited from MoreMountains.Tools.MMSingleton< T >
virtual void Awake ()
 On awake, we initialize our instance. Make sure to call base.Awake() in override if you need awake.
virtual void InitializeSingleton ()
 Initializes the singleton.

Additional Inherited Members

Static Public Member Functions inherited from MoreMountains.Tools.MMSingleton< T >
static T TryGetInstance ()
Static Protected Attributes inherited from MoreMountains.Tools.MMSingleton< T >
static T _instance
Properties inherited from MoreMountains.Tools.MMSingleton< T >
static bool HasInstance [get]
static T Current [get]
static T Instance [get]
 Singleton design pattern.

Detailed Description

This class handles the level selection map. It's pretty specific, you'll probably want to code your own to fit your own level selection needs.

Member Function Documentation

◆ GoToLevel()

virtual void MoreMountains.InfiniteRunnerEngine.Map.GoToLevel ( string levelName)
virtual

Loads the level specified in parameters (usually called via MapButton.cs in our case)

Parameters
levelNameLevel name.

◆ RestartLevel()

virtual void MoreMountains.InfiniteRunnerEngine.Map.RestartLevel ( )
virtual

Restarts the current level.

◆ Update()

virtual void MoreMountains.InfiniteRunnerEngine.Map.Update ( )
protectedvirtual

On each frame, we check for input.

Member Data Documentation

◆ ActiveLevelParticleEmitter

ParticleSystem MoreMountains.InfiniteRunnerEngine.Map.ActiveLevelParticleEmitter

The particle system that signals what level is currently selected.

◆ LevelNameText

Text MoreMountains.InfiniteRunnerEngine.Map.LevelNameText

The text object that will actually display the.


The documentation for this class was generated from the following file:
  • Assets/InfiniteRunnerEngine/Common/Scripts/GUI/Map.cs