|
Infinite Runner Engine v2.2
|
The scenario script for the Flight of the Albatross demo scene. More...
Public Attributes | |
| DistanceSpawner | RocksSpawner |
| the rock spawner from the scene | |
| DistanceSpawner | WallsSpawner |
| the wall spawner from the scene | |
| Text | ScoreText |
| the GUI text gameobject we'll use to display score at certain intervals | |
| Public Attributes inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager | |
| float | EvaluationFrequency = 1 |
| The frequency at which the scenario will be evaluated, in seconds. | |
| bool | UseEventManager = true |
Protected Member Functions | |
| override void | Scenario () |
| This method describes the scenario. | |
| virtual void | SwitchToRocksSpawner () |
| Turns rock spawning off and wall spawning on. | |
| virtual void | SwitchToWallsSpawner () |
| Turns rock spawning on and wall spawning off. | |
| virtual void | LaunchScoreText (string message) |
| Takes the recyclable ScoreText object, updates it with the current score, and makes it move towards the player. | |
| Protected Member Functions inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager | |
| virtual void | Awake () |
| On Awake, we initialize our scenario. | |
| virtual void | Start () |
| On start, we create and fill the scenario. | |
| virtual void | AddTimeEvent (string timeInStringNotation, Action action, string eventName="") |
| Adds an event to the scenario that will be triggered at the specified time. | |
| virtual void | AddScoreEvent (float startScore, Action action, string eventName="") |
| Adds the score event. | |
| virtual void | EvaluateScenario () |
| Evaluates the scenario, triggering events every time the level's running time is higher than their start time. | |
| virtual void | TestMethod (string someMessage) |
| A test method that just displays the string passed as an argument. Just used for demo purposes. | |
Additional Inherited Members | |
| Public Member Functions inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager | |
| virtual void | StopScenario () |
| Use this method to stop the scenario from being evaluated. | |
| Protected Attributes inherited from MoreMountains.InfiniteRunnerEngine.ScenarioManager | |
| List< ScenarioEvent > | _scenario |
The scenario script for the Flight of the Albatross demo scene.
|
protectedvirtual |
Takes the recyclable ScoreText object, updates it with the current score, and makes it move towards the player.
| message | Message. |
|
protectedvirtual |
This method describes the scenario.
Reimplemented from MoreMountains.InfiniteRunnerEngine.ScenarioManager.
|
protectedvirtual |
Turns rock spawning off and wall spawning on.
|
protectedvirtual |
Turns rock spawning on and wall spawning off.
| DistanceSpawner MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.RocksSpawner |
the rock spawner from the scene
| Text MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.ScoreText |
the GUI text gameobject we'll use to display score at certain intervals
| DistanceSpawner MoreMountains.InfiniteRunnerEngine.AlbatrossScenario.WallsSpawner |
the wall spawner from the scene