![]() |
#18
|
|||
|
|||
![]()
This sample to use Time.current()
count in seconds from started battle. Code:
private double nextMsgTime = 0; public override void OnTickGame() { base.OnTickGame(); // Time. current() in seconds from Battle Start if ( Time.current() > nextMsgTime ) { nextMsgTime = Time.current() + 10.0; // 10 seconds to next message GamePlay.gpHUDLogCenter( "Time elapsed (in seconds) = " + Time.current() + ", next message will be at "+nextMsgTime); } } |
|
|