C# 클래스 Antura.UI.MinigamesUILives

Shows the number of current and max lives available in a minigame.
상속: Antura.UI.ABSMinigamesUIComponent
파일 보기 프로젝트 열기: vgwb/Antura_arabic 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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