public uGUIMovingPanel(uGUIManagedPanel panel, PanelState targetState, bool queued, bool instant, bool additional) { this.panel = panel; this.targetState = targetState; this.queued = queued; this.instant = panel.duration == 0 ? true : instant; this.additional = additional; }
public uGUIMovingPanel(uGUIManagedPanel panel, bool show, bool hide, bool queued, bool instant, bool additional) { this.panel = panel; this.queued = queued; this.instant = panel.duration == 0 ? true : instant; this.additional = additional; if (show) targetState = PanelState.Show; if (hide) targetState = PanelState.Hide; }