void OnDisable()
{
//Do stuff with the Panels
foreach (GameObject _gameObject in GUIPanelGameObjects)
{
if (_gameObject!=null)
{
//Instead of setActiverrecusively
NGUITools.SetActive(_gameObject, false);
Debug.Log("Disabling panel: " + _gameObject.name);
}
}
}