コード例 #1
0
ファイル: Machine.cs プロジェクト: mahibak/idlorio
 public Rotation GetRotation()
 {
     return(_gridTransform.GetRotation());
 }
コード例 #2
0
ファイル: InputStateMove.cs プロジェクト: mahibak/idlorio
 private void Rotate(bool clockwise)
 {
     _targetTransform.SetRotation((Rotation)(((int)_targetTransform.GetRotation() + (clockwise ? 1 : -1) + 4) % 4));
     RefreshValidity();
 }