Commit f141e600 authored by mmaluschnig's avatar mmaluschnig
Browse files

non thrown pies are destroyed

parent 718c8167
......@@ -49,7 +49,7 @@ public class PieTutorial : MonoBehaviour {
powerPointer.gameObject.SetActive(false);
}else{
GameObject.FindWithTag("Player").GetComponentInParent<Animator>().SetBool("ResetThrow", true);
GameObject.FindWithTag("Player").transform.DetachChildren();
Destroy(GameObject.FindWithTag("Player").transform.GetChild(0).gameObject);
SimonText.text = "Grr (No you have to HOLD DOWN spaceBar to change power)";
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment