private void CollisionHandle() //check if all exits are full { int numberOfFullExits = 0; foreach (GameObject go in exits) { Exit ex = go.GetComponent <Exit>(); if (ex.isFull()) { ++numberOfFullExits; } if (numberOfFullExits == exits.GetLength(0)) { FindObjectOfType <AudioManager>().Play("WinLevel"); ingameUI.ShowSummaryUI(); SaveThisGo(); } //Debug.Log(numberOfFullExits); } }