private void PanelMotionOpen() { UISwitchAnim anim = UIMotionSystem.GetAnim(this.prefabName); if (anim != null && anim.ShowAnim > 0) { this.SetMaskNonLink(); PanelSwitcher.DoAnim(base.get_transform(), anim.ShowAnim, delegate { this.ActionOpen(); }); } }
private bool PanelMotionClose() { UISwitchAnim anim = UIMotionSystem.GetAnim(this.prefabName); if (anim != null && anim.HideAnim > 0) { this.SetMaskNonLink(); PanelSwitcher.DoAnim(base.get_transform(), anim.HideAnim, delegate { this.ActionClose(); }); return(true); } return(false); }