public override void ResetCanvas() { foreach (RectTransform trans in rectTransform) { UICanvasPanel panel = trans.GetComponent <UICanvasPanel> (); if (panel != null) { panel.ResetCanvas(); } } }
public override void SlideOut(float duration, SlideTo to, TweenCallback onComplete = null) { if (isTransitionComplete == false) { return; } foreach (RectTransform trans in rectTransform) { UICanvasPanel panel = trans.GetComponent <UICanvasPanel> (); if (panel != null) { panel.SlideOut(duration, to, onComplete); } } }