void CorrectButtonclicked(EventInfo info) { RoundEmdEventInfo roundInfo = new RoundEmdEventInfo(); roundInfo.playerWin = true; EventManager.instance.TriggerEvent(MyEventType.EndRound, roundInfo); }
void EndRound(EventInfo ei) { RoundEmdEventInfo info = (RoundEmdEventInfo)ei; if (info.playerWin) { } else { } }
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; } }