C# Class TimeUtils, ProjectPhoenix

Inheritance: MonoBehaviour
Afficher le fichier Open project: Alx666/ProjectPhoenix Class Usage Examples

Méthodes publiques

Свойство Type Description
time TimeUtils

Méthodes publiques

Méthode Description
AddTimer ( float rate, Action callBack ) : int

Creates new timer

AddTimer ( float rate, int ticks, Action callBack ) : int

Creates new timer

RemoveTimer ( int timerId ) : void

Removes timer

Private Methods

Méthode Description
Awake ( ) : void

Awake

Remove ( ) : void

Timer removal queue handler

Tick ( ) : void

Updates timers

Update ( ) : void

Method Details

AddTimer() public méthode

Creates new timer
public AddTimer ( float rate, Action callBack ) : int
rate float Tick rate
callBack Action Callback method
Résultat int

AddTimer() public méthode

Creates new timer
public AddTimer ( float rate, int ticks, Action callBack ) : int
rate float Tick rate
ticks int Number of ticks before timer removal
callBack Action Callback method
Résultat int

RemoveTimer() public méthode

Removes timer
public RemoveTimer ( int timerId ) : void
timerId int Timer GUID
Résultat void

Property Details

time public_oe static_oe property

public static TimeUtils time
Résultat TimeUtils