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