Alert() public method

public Alert ( int incrementValue, string reason ) : void
incrementValue int
reason string
return 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!");
     }
 }