Publisher | devMsecvtrie |
---|---|
File size | 2.11kB |
Number of files | 2 |
Latest version | 1 |
Latest release date | 2024-07-16 01:47:11 |
First release date | 2024-07-16 01:47:11 |
Supported Unity versions | 2018.4.2 or higher |
Thanks using my Asset!
To use this asset (WaitTime), you need to contain "using static WaitTime.WTClass;" in your C# script.
Currently, there are 2 functions only that you can do:
await WaitSeconds(float duration, params string[] id);
-> (awaitable) Task WaitTime.WTClass.WaitSeconds(float duration, params string[] id)
-> Summary: Wait for the specified duration(seconds)
-> Param (duration): How long do you want to wait for (in seconds)?
-> Param (id): The unique string id. You may stop waiting using the id. [NOT REQUIRED]
StopWaiting(string id);
-> int WaitTime.WTClass.StopWaiting(string id)
-> Summary: Focus to stop a waiting (Return a int value, for error code: 0=None; 1=Unknown; 2=Null Id; 3=Invalid Id)
Warning: You must use await to WaitSeconds!