C# Class TimeUtils, ProjectPhoenix

Inheritance: MonoBehaviour
显示文件 Open project: Alx666/ProjectPhoenix Class Usage Examples

Public Properties

Property Type Description
time TimeUtils

Public Methods

Method 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

Method Description
Awake ( ) : void

Awake

Remove ( ) : void

Timer removal queue handler

Tick ( ) : void

Updates timers

Update ( ) : void

Method Details

AddTimer() public method

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

AddTimer() public method

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
return int

RemoveTimer() public method

Removes timer
public RemoveTimer ( int timerId ) : void
timerId int Timer GUID
return void

Property Details

time public_oe static_oe property

public static TimeUtils time
return TimeUtils