public void BackToHistory(PanelParamBase newPanelParam) { if (this.m_HistoryPanelStack.Count > 0) { this.OpenHistory(this.m_HistoryPanelStack.Pop(), newPanelParam); } }
protected override void Open(PanelParamBase panelParam) { this.PlayerGrid.InitGrid(FightMgr.Instance.PlayerGrids); this.EnemyGrid.InitGrid(FightMgr.Instance.EnemyGrids); this.PlayerGrid.UpdateBattleArray(FightMgr.Instance.PlayerBattleArray); this.EnemyGrid.UpdateBattleArray(FightMgr.Instance.EnemyBattleArray); }
private void OpenHistory(HistoryPanelLogicData history, PanelParamBase newPanelParam) { this.Open(history.Panel, newPanelParam); if (history.SecondPanel != null) { this.OpenHistory(history.SecondPanel); } }
public void ChangeHistoryPanelParam(PanelParamBase param) { if (this.m_HistoryPanelStack.Count > 0) { HistoryPanelLogicData data = this.m_HistoryPanelStack.Pop(); data.SetPanelParam(param); this.m_HistoryPanelStack.Push(data); } }
public void Open(PanelType type, PanelParamBase panelParam, PanelEffectType effectType, int depth) { this.ThisPanel = type; this.SetPanelDepth(depth); if (!this.IsInit) this.Init(); this.InitPanel(); this.Open(panelParam); this.PlayEffect(effectType); }
public void Open(PanelType type, PanelParamBase panelParam, PanelEffectType effectType, int depth) { this.ThisPanel = type; this.SetPanelDepth(depth); if (!this.IsInit) { this.Init(); } this.InitPanel(); this.Open(panelParam); this.PlayEffect(effectType); }
public void Open(PanelType type, PanelParamBase panelParam = null, PanelEffectType openEffectType = PanelEffectType.Open) { PanelBase panel = null; int newDepth = 0; if (this.m_OpenedPanelDic.ContainsKey(type)) { panel = this.m_OpenedPanelDic[type]; newDepth = panel.GetDepth(); } else { panel = PoolMgr.Instance.GetPanel(type); if (panel == null) { Debug.Log("Panel is null " + type); return; } panel.MyTransform.localPosition = Vector3.zero; this.m_OpenedPanelDic.Add(type, panel); newDepth = this.GetTopDepth() + 2;//加2的原因是为了保险起见,因为有的时候只加1可能会出现面板重叠 } panel.Open(type, panelParam, openEffectType, newDepth); }
public void Open(PanelType type, PanelParamBase panelParam = null,PanelEffectType openEffectType = PanelEffectType.Open) { PanelBase panel = null; int newDepth = 0; if (this.m_OpenedPanelDic.ContainsKey(type)) { panel = this.m_OpenedPanelDic[type]; newDepth = panel.GetDepth(); } else { panel = PoolMgr.Instance.GetPanel(type); if (panel == null) { Debug.Log("Panel is null " + type); return; } panel.MyTransform.localPosition = Vector3.zero; this.m_OpenedPanelDic.Add(type, panel); newDepth = this.GetTopDepth() + 2;//加2的原因是为了保险起见,因为有的时候只加1可能会出现面板重叠 } panel.Open(type,panelParam, openEffectType, newDepth); }
public void SetPanelParam(PanelParamBase param) { this.PanelParam = param; }
protected abstract void Open(PanelParamBase panelParam);
public HistoryPanelLogicData(PanelType panel, PanelParamBase param, HistoryPanelLogicData secondPanel) { this.Panel = panel; this.SetPanelParam(param); this.SetSecondPanel(secondPanel); }
public HistoryPanelLogicData(PanelType panel, PanelParamBase param) { this.Panel = panel; this.SetPanelParam(param); }