Пример #1
0
 public void SetExitPosition(HorizontalPipe horizontalPipeEntered)
 {
     if (horizontalPipeEntered == HorizontalPipe.UP)
     {
         Position = GameSettings.Instance.UpOutPlayerPos;
     }
     else
     {
         Position = GameSettings.Instance.DownOutPlayerPos;
     }
 }
Пример #2
0
 public void CloseOn(HorizontalPipe hp)
 {
     if (hp == HorizontalPipe.UP)
     {
         Position = GameSettings.Instance.UpInOpenCloseCirclePos;
     }
     else
     {
         Position = GameSettings.Instance.DownInOpenCloseCirclePos;
     }
     Close();
 }
Пример #3
0
 public void OpenOn(HorizontalPipe hp)
 {
     if (hp == HorizontalPipe.UP)
     {
         Position = GameSettings.Instance.UpOutOpenCloseCirclePos;
     }
     else
     {
         Position = GameSettings.Instance.DownOutOpenCloseCirclePos;
     }
     Open();
 }