コード例 #1
0
 public void LookRight()
 {
     if ((int)_positionStatus % 2 == 0)
     {
         _positionStatus = PositionStatuses.LooksRight1;
     }
     else
     {
         _positionStatus = PositionStatuses.LooksRight2;
     }
 }
コード例 #2
0
 public void LookDown()
 {
     if ((int)_positionStatus % 2 == 0)
     {
         _positionStatus = PositionStatuses.LooksDown1;
     }
     else
     {
         _positionStatus = PositionStatuses.LooksDown2;
     }
 }
コード例 #3
0
 public void LookLeft()
 {
     if ((int)_positionStatus % 2 == 0)
     {
         _positionStatus = PositionStatuses.LooksLeft1;
     }
     else
     {
         _positionStatus = PositionStatuses.LooksLeft2;
     }
 }
コード例 #4
0
 public void LookUp()
 {
     if ((int)_positionStatus % 2 == 0)
     {
         _positionStatus = PositionStatuses.LooksUp1;
     }
     else
     {
         _positionStatus = PositionStatuses.LooksUp2;
     }
 }