void fadeOutComplete(int index) { if (objects[index] == currentActive) { if (nextActive != null) { nextActive.fadeIn(); currentActive = nextActive; // Debug.Log("PageTransitioning to next"); } // else Debug.Log("fade out something"); } }