Corgi Engine  v9.1
MoreMountains.CorgiEngine.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.CorgiEngine.CharacterSelector:
MoreMountains.CorgiEngine.CorgiMonoBehaviour

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...
 
Character 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.CorgiEngine.CharacterSelector.LoadNextScene ( )
virtual

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

◆ StoreCharacterSelection()

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

Stores the selected character prefab in the Game Manager

Member Data Documentation

◆ CharacterPrefab

Character MoreMountains.CorgiEngine.CharacterSelector.CharacterPrefab

The character prefab to store in the GameManager.

◆ DestinationSceneName

string MoreMountains.CorgiEngine.CharacterSelector.DestinationSceneName

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


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