コード例 #1
0
    public void CollectWinningsCashOut()
    {
        if (!collect_win)
        {
            slot_system.BonusGame_2_Win(current_win - win_added_to_balance);
            collect_win = true;
            //collectWinButton.SetActive(false);

            if (PlayDoubleUpBonusWinAnimation != null)
            {
                PlayDoubleUpBonusWinAnimation();
            }
            else
            {
                Debug.LogWarning("NOTHING IS ASSIGN TO PlayDoubleUpBonusWinAnimation DELEGATE");
            }

            if (slot_system.autospin)
            {
                slot_system.StartCoroutine("SpinAutomatically");
            }

            ResetValues();
            DestroyCardClones();

            //slot_system.bonusGame = false;
        }
        else
        {
            Debug.Log("you have collect your winnings already");
        }
    }
コード例 #2
0
 public void DontRunBonusGame()
 {
     slot_system.bonusGame = false;
     if (slot_system.autospin)
     {
         slot_system.StartCoroutine("SpinAutomatically");
     }
 }