Void IEnumerator Example ()
{
A.gameObject.setActive (true);
Yield return new WaitForSeconds (0.2f);
A.gameObject.setActive (false);
}
I want to enable A gamrobject just for .2 seconds using the above coroutine. But this code does nothing. I am sure that the function it gets called because i have checcked with debug.log function