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

The scenario script for the Flight of the Albatross demo scene More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.AlbatrossScenario:
MoreMountains.InfiniteRunnerEngine.ScenarioManager

Public Attributes

DistanceSpawner RocksSpawner
 the rock spawner from the scene More...
 
DistanceSpawner WallsSpawner
 the wall spawner from the scene More...
 
Text ScoreText
 the GUI text gameobject we'll use to display score at certain intervals More...
 
- Public Attributes inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager
float EvaluationFrequency =1
 The frequency at which the scenario will be evaluated, in seconds. More...
 
bool UseEventManager =true
 

Protected Member Functions

override void Scenario ()
 This method describes the scenario More...
 
virtual void SwitchToRocksSpawner ()
 Turns rock spawning off and wall spawning on More...
 
virtual void SwitchToWallsSpawner ()
 Turns rock spawning on and wall spawning off More...
 
virtual void LaunchScoreText (string message)
 Takes the recyclable ScoreText object, updates it with the current score, and makes it move towards the player More...
 
- Protected Member Functions inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager
virtual void Awake ()
 On Awake, we initialize our scenario More...
 
virtual void Start ()
 On start, we create and fill the scenario More...
 
virtual void AddTimeEvent (string timeInStringNotation, Action action, string eventName="")
 Adds an event to the scenario that will be triggered at the specified time. More...
 
virtual void AddScoreEvent (float startScore, Action action, string eventName="")
 Adds the score event. More...
 
virtual void EvaluateScenario ()
 Evaluates the scenario, triggering events every time the level's running time is higher than their start time More...
 
virtual void TestMethod (string someMessage)
 A test method that just displays the string passed as an argument. Just used for demo purposes. More...
 

Additional Inherited Members

- Public Member Functions inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager
virtual void StopScenario ()
 Use this method to stop the scenario from being evaluated More...
 
- Protected Attributes inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager
List< ScenarioEvent_scenario
 

Detailed Description

The scenario script for the Flight of the Albatross demo scene

Member Function Documentation

◆ LaunchScoreText()

virtual void MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.LaunchScoreText ( string  message)
protectedvirtual

Takes the recyclable ScoreText object, updates it with the current score, and makes it move towards the player

Parameters
messageMessage.

◆ Scenario()

override void MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.Scenario ( )
protectedvirtual

This method describes the scenario

Reimplemented from MoreMountains.InfiniteRunnerEngine.ScenarioManager.

◆ SwitchToRocksSpawner()

virtual void MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.SwitchToRocksSpawner ( )
protectedvirtual

Turns rock spawning off and wall spawning on

◆ SwitchToWallsSpawner()

virtual void MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.SwitchToWallsSpawner ( )
protectedvirtual

Turns rock spawning on and wall spawning off

Member Data Documentation

◆ RocksSpawner

DistanceSpawner MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.RocksSpawner

the rock spawner from the scene

◆ ScoreText

Text MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.ScoreText

the GUI text gameobject we'll use to display score at certain intervals

◆ WallsSpawner

DistanceSpawner MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.WallsSpawner

the wall spawner from the scene


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