Sounds like a decent time to use a Coroutine. Something like this:
IEnumerator RunEvent()
{
while(varfloat < instant)
{
varfloat += Time.deltaTime;
yield return 0;
}
RunEvent();
}
↧