예제 #1
0
파일: Tanki.cs 프로젝트: Bulatsad/BrickGame
 public void Right()
 {
     bgField.SetValueAtPosition(x, y, 0);
     if (x != bgField.GetWidth() - 1)
     {
         x++;
     }
     bgField.SetValueAtPosition(x, y, 1);
 }
예제 #2
0
 private void Right()
 {
     field.SetValueAtPosition(x, y, 0);
     if (x != field.GetWidth() - 1)
     {
         x++;
     }
     field.SetValueAtPosition(x, y, 1);
 }