样式调整
This commit is contained in:
1 parent
7d0128d912
commit
ab9b6a86f3
24 files changed
+2626
-1655
No files matched your search
@@ -473,5 +473,18 @@ namespace Assets.Scripts
|
||||
var ts = TimeSpan.FromSeconds(second);
|
||||
return $"{ (int)ts.TotalHours }:{ts:mm}:{ts:ss}";
|
||||
}
|
||||
private static IEnumerator TimerFunc(float seconds, Action action)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
yield return new WaitForSeconds(seconds); // 停止执行1秒
|
||||
action.Invoke();
|
||||
//time = UIManager.Now.GetDateTime().AddSeconds(1);
|
||||
}
|
||||
}
|
||||
public static void StartTimeUnLimit(float seconds,Action action)
|
||||
{
|
||||
UIManager.Instance.StartCoroutine(TimerFunc(seconds, action));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user