Question by
SuperCrow2 · Aug 14, 2018 at 03:41 AM ·
c#gameobjectactivate
GameObject not reactivating
I deactivated the object in the inspector (the small check box right next to the name) but this code doesn't reactivate it after a certain amount of time. I am using Unity 2d and C#
{
private Object Flower;
void Start()
{
StartCoroutine(flower());
}
IEnumerator flower()
{
print(Time.time);
yield return new WaitForSeconds(8);
Instantiate(Flower);
print(Time.time);
}
}
Comment