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