Property | Type | Description | |
---|---|---|---|
LifePrefab | Antura.UI.MinigamesUISingleLife |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
GainALife ( bool _canExceedMax = false ) : int |
Adds one life and retuns the current active ones (the ones with a full heart). If the new value is higher than MaxLives, new life objects are created and MaxLives is modified accordingly.
|
|
LoseALife ( ) : int |
Removes one active life and retuns the current active ones (the ones with a full heart)
|
|
ResetToMax ( ) : int |
Makes all life objects active (with a full heart)
|
|
SetCurrLives ( int _to, bool _canExceedMax = false ) : int |
Sets the current lives to the given value and returns the value (representing the lives with a full heart).
|
|
Setup ( int _maxLives ) : void |
Sets the max lives. Call this before calling any other method.
|
public GainALife ( bool _canExceedMax = false ) : int | ||
_canExceedMax | bool | If TRUE and the new value is higher than |
return | int |
public SetCurrLives ( int _to, bool _canExceedMax = false ) : int | ||
_to | int | Lives to set as active (with full heart) |
_canExceedMax | bool | If TRUE and the new value is higher than |
return | int |