public void ResetTarget() { // targetPrefab.GetComponent<MeshRenderer>().enabled =false; targetPrefab.GetComponent <Collider>().enabled = false; percent = 0; initialized = false; startLevel.EndLevel(); }
public void ResetTarget() { targetPlacedSound.Play(); // targetPrefab.GetComponent<MeshRenderer>().enabled =false; targetPrefab.GetComponent <Collider>().enabled = false; percent = 0; initialized = false; setUPCircle.GetComponent <Image>().fillAmount = 1; setupFocus.color = new Color(1, 1, 1, 1); startLevel.EndLevel(); }