IEnumerator StartCo() { yield return(null); startGameSignal.Raise(); buildingPlacement.PutItem(Fireplace); while (!buildingPlacement.hasPlaced) { // startGameSignal.Raise(); yield return(null); } Fireplace.transform.position = Fireplace.transform.position - new Vector3(0, 0, 1); /* Fireplace.SetActive(false); * Fireplace.SetActive(true);*/ //yield return null; Fireplace.GetComponent <Fireplace>().makepath(); //Debug.LogError(GameObject.FindGameObjectWithTag("Fireplace")); Player.gameObject.transform.position = Fireplace.transform.position + new Vector3(0, -2, 0); // int i = 0; foreach (GameObject item in objectsSpawnedAtStart) { GameObject.Instantiate(item, Fireplace.transform.position + new Vector3(0, -2, 0), Quaternion.identity); } foreach (GameObject item in activeGuiElements) { item.SetActive(true); } // Player.GetComponent<Rigidbody2D>().isKinematic = false; Player.SetActive(true); Fireplace.GetComponent <Fireplace>().enabled = true; // Player.SetActive(true); }