Hey Unity Community.
I hope all is well.
I am having a brain fart and can not seam to be able to figure out why this simple test would not work.
void Start(){
StartCoroutine("whileTest");
}
IEnumerator whileTest()
{
while(true == true)
{
yield return new WaitForSeconds(1);
Debug.Log ("while test working");
}
}
What could possibly be the reason why that Debug.log would not show up every second? I checked the time.time by debug.logging it into the update and it works fine. And if I place the Debug.log infront of the yield, it prints. But it never gets past the Waitforseconds.
Thanks all.