|
Flying Piggy 2D Runner Kit
1.0
Complete 2D runner template for Unity
|
Public Types | |
| enum | State { State.RUNNING, State.PAUSED, State.OVER, State.WON, State.STOPPED } |
Public Member Functions | |
| override void | StartGame () |
| override void | PauseGame () |
| override void | ResumeGame () |
| override void | StopGame () |
| override void | ResetGame () |
| override void | GameOver () |
| override void | WinGame () |
Public Member Functions inherited from GameCommandReceiver | |
| virtual void | PauseNewGame () |
| virtual void | ResumeNewGame () |
Public Attributes | |
| float | startSpeed = 5.0f |
| float | maxSpeed = 12.0f |
| float | acceleration = 0.05f |
| float | brakingAcceleration = -0.5f |
| List< Command > | commandsAfterGameStopped |
| List< Command > | commandsOnGameStopping |
| List< Command > | commandsOnGameOver |
| List< Command > | commandsOnGameWon |
| List< Command > | commandsOnGameOverAfterGameStopped |
| List< Command > | commandsOnGameWonAfterGameStopped |
Properties | |
| static RunSettings | Instance [get] |
| float | Speed [get] |
RunSettings determines the speed of the rolling backgrounds and other items, and actions related to state of the movement (rolling speed).
| enum RunSettings.State |
|
virtual |
Actions after the game is over.
Reimplemented from GameCommandReceiver.
|
virtual |
Actions after the game is paused.
Reimplemented from GameCommandReceiver.
|
virtual |
Actions after the game is resetted.
Reimplemented from GameCommandReceiver.
|
virtual |
Actions after the game is resumed.
Reimplemented from GameCommandReceiver.
|
virtual |
Actions after the game is started.
Reimplemented from GameCommandReceiver.
|
virtual |
Actions after the game is stopped.
Reimplemented from GameCommandReceiver.
|
virtual |
Actions after the game is won.
Reimplemented from GameCommandReceiver.
| float RunSettings.acceleration = 0.05f |
| float RunSettings.brakingAcceleration = -0.5f |
| List<Command> RunSettings.commandsAfterGameStopped |
| List<Command> RunSettings.commandsOnGameOver |
| List<Command> RunSettings.commandsOnGameOverAfterGameStopped |
| List<Command> RunSettings.commandsOnGameStopping |
| List<Command> RunSettings.commandsOnGameWon |
| List<Command> RunSettings.commandsOnGameWonAfterGameStopped |
| float RunSettings.maxSpeed = 12.0f |
| float RunSettings.startSpeed = 5.0f |
|
staticget |
Get single instance of RunSettings
|
get |
Speed