|
Flying Piggy 2D Runner Kit
1.0
Complete 2D runner template for Unity
|
Public Member Functions | |
| override void | Reset () |
Public Member Functions inherited from Item | |
| override void | StartGame () |
| override void | PauseGame () |
| override void | ResumeGame () |
Public Member Functions inherited from GameCommandReceiver | |
| virtual void | PauseNewGame () |
| virtual void | ResumeNewGame () |
| virtual void | GameOver () |
| virtual void | WinGame () |
| virtual void | StopGame () |
| virtual void | ResetGame () |
Public Attributes | |
| float | fallingTime = 4.0f |
| Vector3 | fallingDirection |
| bool | useInvokeRepeating = true |
| float | timeStep = 0.02f |
Public Attributes inherited from Obstacle | |
| AudioClip | push |
Public Attributes inherited from Item | |
| GameData.ScoreId | scoreId |
| GameData.ScoreId | totalScoreId |
| GameData.ScoreId | highscoreId |
Protected Member Functions | |
| override void | OnStart () |
| override void | OnUpdate () |
| override void | ItemOnCollisionEnter (Collision2D collision) |
Protected Member Functions inherited from Item | |
| void | AddToScore () |
| virtual void | ItemOnTriggerEnter (Collider2D other) |
| virtual void | ItemOnCollisionStay (Collision2D collision) |
| virtual void | ItemOnCollisionExit (Collision2D collision) |
Additional Inherited Members | |
Protected Attributes inherited from Item | |
| List< Score > | scores |
| int | scoreStep = 1 |
| Vector3 | originalPosition |
| Vector3 | originalAngles |
Static Protected Attributes inherited from Item | |
| static bool | pause = false |
Paperplane
Obstacle with extended features
|
protectedvirtual |
Play sound if the player pushes this obstacle
Reimplemented from Obstacle.
|
protectedvirtual |
Set Collider as not a trigger.
Reimplemented from Obstacle.
|
protectedvirtual |
Is executed on Update()
Reimplemented from Item.
|
virtual |
Locate the item to inital position with inital angle on inital layer.
Reimplemented from Item.
| Vector3 Plane.fallingDirection |
| float Plane.fallingTime = 4.0f |
| float Plane.timeStep = 0.02f |
| bool Plane.useInvokeRepeating = true |