The following script turns a stack of collectible into lives when a threshold value is reached. i.e. Collect 100 coins to get a life. Could easily be modified to convert items or add health.
More...
|
string | itemType |
| Name of the item that is collected and converted in to lives. More...
|
|
int | threshold = 100 |
| The threshold at which the item is convertedin to to lives. More...
|
|
The following script turns a stack of collectible into lives when a threshold value is reached. i.e. Collect 100 coins to get a life. Could easily be modified to convert items or add health.
◆ HandleItemCollected()
virtual void PlatformerPro.ItemsToLives.HandleItemCollected |
( |
object |
sender, |
|
|
ItemEventArgs |
e |
|
) |
| |
|
protectedvirtual |
Handles the item collected event.
- Parameters
-
sender | Sender. |
e | Parameters. |
◆ Init()
virtual void PlatformerPro.ItemsToLives.Init |
( |
| ) |
|
|
protectedvirtual |
◆ characterHealth
Cached reference to character health.
◆ itemManager
Cached reference to item manager
◆ itemType
string PlatformerPro.ItemsToLives.itemType |
Name of the item that is collected and converted in to lives.
◆ threshold
int PlatformerPro.ItemsToLives.threshold = 100 |
The threshold at which the item is convertedin to to lives.
The documentation for this class was generated from the following file:
- D:/Projects/platformer-pro-2019.3/Assets/PlatformerPro/Scripts/Items/ItemsToLives.cs