示例#1
0
 public void OnClick(WorldTileControl tileControl, MouseButtonEventArgs e)
 {
     if (tileControl.EnemyCount + _enemyDelta < 0)
     {
         tileControl.EnemyCount = 0;
     }
     else
     {
         tileControl.EnemyCount += _enemyDelta;
     }
 }
示例#2
0
 public void OnClick(WorldTileControl tileControl, MouseButtonEventArgs e)
 {
     tileControl.TileType = (TileType)_editor.TileTypeSelector.SelectedValue;
 }