コード例 #1
0
    public void ResetProblem()
    {
        DropZone.ClearDropzone(playerTable);
        DropZone.ClearDropzone(playerWallet);
        currentBalance = 0;
        toggleCounter++;

        if (toggleCounter == toggleThreshold)
        {
            if (UnityEngine.Random.Range(0, 2) == 1)
            {
                toggleMoneyShown = true;
            }
            else
            {
                toggleMoneyShown = false;
            }
            Debug.Log("Toggle money shown!! " + toggleMoneyShown);
            toggleCounter = 0;
        }
        probGen.GenerateNewProblem(); //duplicate?
        probGen.requiredAmount = ProblemManager.newProblem.GetUSDSum();
        bombExplosionAnimation.SetActive(false);
        isGameOver = false;
    }