Infinite Runner Engine v1.9
Public Member Functions | Public Attributes | List of all members
MoreMountains.InfiniteRunnerEngine.CharacterSelector Class Reference

Add this component to a button (for example) to be able to store a selected character, and optionally to go to another scene You can see an example of its use in the RetroAdventureCharacterSelection demo scene More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.CharacterSelector:

Public Member Functions

virtual void StoreCharacterSelection ()
 Stores the selected character prefab in the Game Manager More...
 
virtual void LoadNextScene ()
 Loads the next scene after having stored the selected character in the Game Manager. More...
 

Public Attributes

string DestinationSceneName
 The name of the scene to go to when calling LoadNextScene() More...
 
PlayableCharacter CharacterPrefab
 The character prefab to store in the GameManager. More...
 

Detailed Description

Add this component to a button (for example) to be able to store a selected character, and optionally to go to another scene You can see an example of its use in the RetroAdventureCharacterSelection demo scene

Member Function Documentation

◆ LoadNextScene()

virtual void MoreMountains.InfiniteRunnerEngine.CharacterSelector.LoadNextScene ( )
virtual

Loads the next scene after having stored the selected character in the Game Manager.

◆ StoreCharacterSelection()

virtual void MoreMountains.InfiniteRunnerEngine.CharacterSelector.StoreCharacterSelection ( )
virtual

Stores the selected character prefab in the Game Manager

Member Data Documentation

◆ CharacterPrefab

PlayableCharacter MoreMountains.InfiniteRunnerEngine.CharacterSelector.CharacterPrefab

The character prefab to store in the GameManager.

◆ DestinationSceneName

string MoreMountains.InfiniteRunnerEngine.CharacterSelector.DestinationSceneName

The name of the scene to go to when calling LoadNextScene()


The documentation for this class was generated from the following file: