123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Threading.Tasks;
- namespace WS
- {
-
- public class TimerEntity : WSComponent
- {
-
- public float WaitTime;
-
- public float UseTime;
-
- public Action OnCallback;
-
- public Action<float> OnUpdate;
-
- public bool IsPause;
-
- public bool IsLoop;
-
- public TaskCompletionSource<bool> Tcs;
- public override void Dispose()
- {
- base.Dispose();
- WaitTime = 0;
- UseTime = 0;
- OnCallback = null;
- OnUpdate = null;
- IsPause = false;
- IsLoop = false;
- Tcs = null;
- }
- }
- }
|