Skip to content

Instantly share code, notes, and snippets.

@Goncharuk-Nikita
Created March 13, 2019 13:20
Show Gist options
  • Save Goncharuk-Nikita/4ef9645d5c0610a59bfa6cdcf6657db2 to your computer and use it in GitHub Desktop.
Save Goncharuk-Nikita/4ef9645d5c0610a59bfa6cdcf6657db2 to your computer and use it in GitHub Desktop.
private void Method()
{
var wait = new Wait(this);
wait.Execute(5.0F).Done += (i) => DoSomething;
}
private IEnumerator Method()
{
yield return new Wait(this, 5.0F);
// do something;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment