Exemple #1
0
        //压中之后闪烁整体按钮边框闪烁
        public void CtrlBtnFrameShake(object obj, EventArgs eventArgs)
        {
            if (SlotInfo.GoodLuckPoints != null && SlotInfo.GoodLuckPoints.Count > 0)
            {
                int i = 0;
                while (i < SlotInfo.GoodLuckPoints.Count)
                {
                    var fruitType = SlotInfo.GetSlotInfo().pointToOddsList[SlotInfo.GoodLuckPoints[i]].FruitType;
                    Debug.Log(fruitType);

                    if (SlotInfo.FruitSlotList[fruitType] > 0)
                    {
                        fruitBtnFrameLight[(int)fruitType].SetActive(true);
                        Invoke("ShutDownShake", 3);
                    }

                    i++;

                    if (i == SlotInfo.GoodLuckPoints.Count)  //不要在lucky后影响单独的水果被选中
                    {
                        SlotInfo.GoodLuckPoints.Clear();
                    }
                }
            }
            else if (SlotInfo.FruitSlotList[SlotInfo.GetSlotInfo().pointToOddsList[SlotInfo.LotteryPoint].FruitType] > 0)
            {
                //blink
                var tempType = (int)SlotInfo.GetSlotInfo().pointToOddsList[SlotInfo.LotteryPoint].FruitType;
                fruitBtnFrameLight[tempType].SetActive(true);
                Invoke("ShutDownShake", 3);
            }
        }
Exemple #2
0
 public static SlotInfo GetSlotInfo()
 {
     return(_slotInfo ?? (_slotInfo = new SlotInfo()));
 }
 public override void OnGetGameInfo(ISFSObject gameInfo)
 {
     SlotInfo.ClearFruitSlotListToZero();
 }
Exemple #4
0
 private void OnFreshSlot(object obj)
 {
     SlotInfo.ResetFruitSlotList();
     UpdateFruitSlotTxtInfo();
 }