You've already forked Darklings-FightingGame
mirror of
https://github.com/izzy2lost/Darklings-FightingGame.git
synced 2026-03-10 11:35:19 -07:00
20 lines
420 B
C#
20 lines
420 B
C#
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
namespace Demonics.Utility
|
|
{
|
|
public static class UpdateTimer
|
|
{
|
|
public static async Task WaitFor(float waitTime)
|
|
{
|
|
if (waitTime <= 0f) return;
|
|
float timer = 0;
|
|
while (timer < waitTime)
|
|
{
|
|
timer += Time.deltaTime;
|
|
await Task.Yield();
|
|
}
|
|
}
|
|
}
|
|
}
|