public void NotifyObservers(eMessageID _messageID, GameObject _sender) { foreach(IMessageListener observers in m_listeners) { observers.OnMessage(_messageID, _sender); } }
public void OnMessage(eMessageID _messageID, GameObject _sender) { if(_messageID == eMessageID.eWin) { etat = eEtatID.eWin; } if(_messageID == eMessageID.eLoose) { etat = eEtatID.eLoose; } }
public void OnMessage(eMessageID _messageID, GameObject _sender) { if(_messageID == eMessageID.eScoreBasic) { CurrentScore.score += 1; } if(_messageID == eMessageID.eScore) { CurrentScore.score += 3; } }