Infinite Runner Engine v1.9
|
This class describes an item in the scenario. More...
Public Types | |
enum | ScenarioEventTypes { ScoreBased , TimeBased } |
Public Member Functions | |
ScenarioEvent (float startScore, float startTime, Action scenarioEventAction, string eventName, ScenarioEventTypes scenarioEventType) | |
Initializes a new instance of the ScenarioEvent class. More... | |
Public Attributes | |
ScenarioEventTypes | ScenarioEventType |
Is this scenario event triggered when a certain time is reached, or when a certain score is reached ? More... | |
float | StartTime |
the time in seconds at which this event should be triggered More... | |
float | StartScore |
the score at which this event is triggered More... | |
bool | Status |
if true, this event will be triggered by the RunScenario method, then put to false More... | |
string | MMEventName |
the name of the MMEvent to trigger More... | |
Action | ScenarioEventAction |
the action to trigger More... | |
This class describes an item in the scenario.
MoreMountains.InfiniteRunnerEngine.ScenarioEvent.ScenarioEvent | ( | float | startScore, |
float | startTime, | ||
Action | scenarioEventAction, | ||
string | eventName, | ||
ScenarioEventTypes | scenarioEventType | ||
) |
Initializes a new instance of the ScenarioEvent class.
startTime | the time in seconds at which this event should be triggered. |
status | If set to true , this event will be triggered by the RunScenario method, then put to false. |
scenarioItemAction | Scenario event action. |
string MoreMountains.InfiniteRunnerEngine.ScenarioEvent.MMEventName |
the name of the MMEvent to trigger
Action MoreMountains.InfiniteRunnerEngine.ScenarioEvent.ScenarioEventAction |
the action to trigger
ScenarioEventTypes MoreMountains.InfiniteRunnerEngine.ScenarioEvent.ScenarioEventType |
Is this scenario event triggered when a certain time is reached, or when a certain score is reached ?
float MoreMountains.InfiniteRunnerEngine.ScenarioEvent.StartScore |
the score at which this event is triggered
float MoreMountains.InfiniteRunnerEngine.ScenarioEvent.StartTime |
the time in seconds at which this event should be triggered
bool MoreMountains.InfiniteRunnerEngine.ScenarioEvent.Status |
if true, this event will be triggered by the RunScenario method, then put to false