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

Add this class to your scene and it'll store your selected character, for use in the upcoming scene More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.CharacterSelectorManager:
MoreMountains.Tools.MMPersistentSingleton< CharacterSelectorManager >

Public Member Functions

virtual void StoreSelectedCharacter (PlayableCharacter selectedCharacter)
 Stores the selected character for use in upcoming levels More...
 
virtual void ClearSelectedCharacter ()
 Clears the selected character. More...
 

Properties

PlayableCharacter StoredCharacter [getset]
 the stored selected character More...
 
- Properties inherited from MoreMountains.Tools.MMPersistentSingleton< CharacterSelectorManager >
static bool HasInstance [get]
 
static T Current [get]
 
static T Instance [get]
 Singleton design pattern More...
 

Additional Inherited Members

- Public Attributes inherited from MoreMountains.Tools.MMPersistentSingleton< CharacterSelectorManager >
bool AutomaticallyUnparentOnAwake
 if this is true, this singleton will auto detach if it finds itself parented on awake More...
 
- Protected Member Functions inherited from MoreMountains.Tools.MMPersistentSingleton< CharacterSelectorManager >
virtual void Awake ()
 On awake, we check if there's already a copy of the object in the scene. If there's one, we destroy it. More...
 
- Protected Attributes inherited from MoreMountains.Tools.MMPersistentSingleton< CharacterSelectorManager >
bool _enabled
 
- Static Protected Attributes inherited from MoreMountains.Tools.MMPersistentSingleton< CharacterSelectorManager >
static T _instance
 

Detailed Description

Add this class to your scene and it'll store your selected character, for use in the upcoming scene

Member Function Documentation

◆ ClearSelectedCharacter()

virtual void MoreMountains.InfiniteRunnerEngine.CharacterSelectorManager.ClearSelectedCharacter ( )
virtual

Clears the selected character.

◆ StoreSelectedCharacter()

virtual void MoreMountains.InfiniteRunnerEngine.CharacterSelectorManager.StoreSelectedCharacter ( PlayableCharacter  selectedCharacter)
virtual

Stores the selected character for use in upcoming levels

Parameters
selectedCharacterSelected character.

Property Documentation

◆ StoredCharacter

PlayableCharacter MoreMountains.InfiniteRunnerEngine.CharacterSelectorManager.StoredCharacter
getset

the stored selected character


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