Alert() 공개 메소드

public Alert ( int incrementValue, string reason ) : void
incrementValue int
reason string
리턴 void
예제 #1
0
파일: Level.cs 프로젝트: ibdknox/swred
 public void ScoreStallChoice(Stall stall)
 {
     int neighbors = this.GetNeighborCount(stall);
     if (neighbors > 0)
     {
         this.AdjustScore(neighbors * (-15));
         stall.Alert(neighbors * (-15), "Pee foul!");
     }
 }