IEnumerator Respawn(GoldCubes goldCube) { yield return(new WaitForSeconds(respawnTime)); goldCube.gameObject.SetActive(true); }
public void ItemPickUp(GoldCubes goldCube) { goldCube.gameObject.SetActive(false); StartCoroutine("Respawn", goldCube); }