public void ShowDicePanel(int[] DiceNumerArray, float rate, DiceHander hander) { DicePanel.DiceNumerArray = DiceNumerArray; DicePanel.rate = rate; DicePanel.OnDiceRotateFished = hander; GUIManager.ShowView("DicePanel"); }
public static bool isSucceced = false;//记录Check是否成功 /*id 用来传递要使用的技能*/ public void ShowCheckPanel(int id, DiceHander hander, CheckLevel level) { Skill s = SkillManager.Instance.GetSkillDataById(id); CheckPanel.s_Check = s; CheckPanel.hander = hander; CheckPanel.level_CheckPanel = level; GUIManager.ShowView("CheckPanel"); }
/// <summary> /// 第一个参数为骰子的面数,目前分为四面,六面,十面 /// </summary> /// <param name="diceType"></param> /// <param name="rate"></param> public void ShowDicePanel(int diceType, float rate, DiceHander hander = null) { int[] DiceNumerArray = new int[diceType]; if (diceType == 6) { DiceNumerArray = GetIndexRandomNum(1, 6); } else if (diceType == 10) { DiceNumerArray = GetIndexRandomNum(0, 9); } else if (diceType == 4) { DiceNumerArray = GetIndexRandomNum(1, 4); } DicePanel.DiceNumerArray = DiceNumerArray; DicePanel.rate = rate; DicePanel.isPlural = false; DicePanel.OnDiceRotateFished = hander; GUIManager.ShowView("DicePanel"); }
protected override void OnHide() { DestoryDiceCard(); if (!isPlural) { if (OnDiceRotateFished != null) { OnDiceRotateFished(); } } else { slerpIndex = 0; DiceCardDic.Clear(); DiceManager.Instance.ShowDiceCheckPanel(diceValue.ToString(), FromCurrentDiceToNextDice); return; } Array.Clear(DiceNumerArray, 0, DiceNumerArray.Length); slerpIndex = 0; DiceCardDic.Clear(); OnDiceRotateFished = null; }
public void ShowDicePanel(int diceType, float rate, DiceHander hander, int diceCount, CheckLevel level) { int[] DiceNumerArray = new int[diceType]; if (diceType == 6) { DiceNumerArray = GetIndexRandomNum(1, 6); } else if (diceType == 10) { DiceNumerArray = GetIndexRandomNum(0, 9); } else if (diceType == 4) { DiceNumerArray = GetIndexRandomNum(1, 4); } DicePanel.DiceNumerArray = DiceNumerArray; DicePanel.rate = rate; DicePanel.OnDiceRotateFished = hander; DicePanel.isPlural = true; DicePanel.diceNumber_Plural = diceCount; DicePanel.level = level; GUIManager.ShowView("DicePanel"); }
protected override void OnHide() { cardWidget.DestroyChildren(); OnDiceCardMoveFished = null; }
public void ShowDiceCheckPanel(string cardName, DiceHander hander) { DiceCheckPanel.modelName = cardName; DiceCheckPanel.OnDiceCardMoveFished = hander; GUIManager.ShowView("DiceCheckPanel"); }