public void Reset() { theDeathScreen.gameObject.SetActive(false); platformList = FindObjectsOfType <PlatformDestroyer>(); for (int i = 0; i < platformList.Length; i++) { platformList[i].gameObject.SetActive(false); } thePlayer.transform.position = playerStartPoint; platformGenerator.position = platformStartingPoint; thePlayer.gameObject.SetActive(true); theScoreManager.AddCurrency(); //add currency before restting score theScoreManager.scoreCount = 0; theScoreManager.scoreIncreasing = true; powerupReset = true; }