I'm building a game as my final project of university after some short research on internet I've used something like Waitforsecond() in unity but it didn't work, anyone know the solution, plesase help!
You can use coroutines for this:
void CallCoroutine()
{
StartCoroutine(PauseandGo(5));
}
IEnumerator PauseandGo(int seconds)
{
yield return new WaitForSeconds(seconds);
doSomething();
}