C# Класс Antura.UI.MinigamesUILives

Shows the number of current and max lives available in a minigame.
Наследование: Antura.UI.ABSMinigamesUIComponent
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
LifePrefab Antura.UI.MinigamesUISingleLife

Открытые методы

Метод Описание
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.

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

GainALife() публичный Метод

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.
public GainALife ( bool _canExceedMax = false ) : int
_canExceedMax bool If TRUE and the new value is higher than , /// new life objects are created and is modified accordingly.
Результат int

LoseALife() публичный Метод

Removes one active life and retuns the current active ones (the ones with a full heart)
public LoseALife ( ) : int
Результат int

ResetToMax() публичный Метод

Makes all life objects active (with a full heart)
public ResetToMax ( ) : int
Результат int

SetCurrLives() публичный Метод

Sets the current lives to the given value and returns the value (representing the lives with a full heart).
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 , /// new life objects are created and is modified accordingly.
Результат int

Setup() публичный Метод

Sets the max lives. Call this before calling any other method.
public Setup ( int _maxLives ) : void
_maxLives int Max lives
Результат void

Описание свойств

LifePrefab публичное свойство

public MinigamesUISingleLife,Antura.UI LifePrefab
Результат Antura.UI.MinigamesUISingleLife