Commit bd199c14 authored by mmaluschnig's avatar mmaluschnig
Browse files

Merge branch 'piethrowing' into mimemime

* piethrowing:
  Added a bunch of new music and muffled versions of them, plus some ambient birdsong for the daytime scene
  Re-fixed moving target spawn bugs
parents b2f6678b 3c16b3b0
......@@ -13,12 +13,15 @@ public class MovingTarget : MonoBehaviour {
previousPos = -9f;
if (gameObject.activeSelf){
PieTarget[] targets = gameObject.transform.parent.GetComponentsInChildren<PieTarget>();
for (int i = 0; i < gameObject.transform.parent.childCount; i++)
print(targets.Length);
for (int i = 0; i < targets.Length; i++)
{
targets[i].gameObject.SetActive(false);
//targets[i].gameObject.transform.GetChild(0).gameObject.SetActive(false);
}
}
gameObject.SetActive(true);
//gameObject.transform.GetChild(0).gameObject.SetActive(true);
}
// Update is called once per frame
void Update()
......
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