Example #1
0
    void CorrectButtonclicked(EventInfo info)
    {
        RoundEmdEventInfo roundInfo = new RoundEmdEventInfo();

        roundInfo.playerWin = true;
        EventManager.instance.TriggerEvent(MyEventType.EndRound, roundInfo);
    }
Example #2
0
    void EndRound(EventInfo ei)
    {
        RoundEmdEventInfo info = (RoundEmdEventInfo)ei;

        if (info.playerWin)
        {
        }
        else
        {
        }
    }
Example #3
0
    void IncorrectButtonClicked(EventInfo info)
    {
        ++currentErrors;

        if (currentErrors == GameManager.instance.maxErrors)
        {
            RoundEmdEventInfo roundInfo = new RoundEmdEventInfo();
            roundInfo.playerWin = false;
            EventManager.instance.TriggerEvent(MyEventType.EndRound, roundInfo);
        }
    }
    void EndRound(EventInfo ei)
    {
        RoundEmdEventInfo info = (RoundEmdEventInfo)ei;

        if (info.playerWin)
        {
            ++success;
        }
        else
        {
            ++failures;
        }
    }