예제 #1
0
    public void createNoteInWallet(ProblemAndAnswer answer)    //This is the main function that will be used
    {
        List <Note> notesToDisplay = addRandomNote(mergeAnswers(answer.GetMixedAnswer(), answer.GetRielAnswer()), maxAddUsdNum, maxAddReilsNum);

        for (int i = 0; i < notesToDisplay.Count; i++)
        {
            createNote(notesToDisplay[i]);
        }
    }
예제 #2
0
    // Update is called once per frame

    public void createNoteInWalletMixed(ProblemAndAnswer answer)
    {
        maxAddUsdNum   = settings.MaxAddUsdNum;
        minAddUsdNum   = settings.MinAddUsdNum;
        maxAddReilsNum = settings.MaxAddRielsNum;
        minAddReilsNum = settings.MinAddRielsNum;
        List <Note> notesToDisplay = addRandomNote(answer.GetMixedAnswer(), maxAddUsdNum, maxAddReilsNum);

        for (int i = 0; i < notesToDisplay.Count; i++)
        {
            createNote(notesToDisplay[i]);
        }
    }