private IEnumerator coroutine;
void Start()
{
coroutine = WaitAndPrint(2.0f);
StartCoroutine(coroutine);
}
private IEnumerator WaitAndPrint(float waitTime)
{
while (true) // Remove this to only run Coroutine once.
{
yield return new WaitForSeconds(waitTime);
print("WaitAndPrint " + Time.time);
}
}