public void SetExitPosition(HorizontalPipe horizontalPipeEntered) { if (horizontalPipeEntered == HorizontalPipe.UP) { Position = GameSettings.Instance.UpOutPlayerPos; } else { Position = GameSettings.Instance.DownOutPlayerPos; } }
public void CloseOn(HorizontalPipe hp) { if (hp == HorizontalPipe.UP) { Position = GameSettings.Instance.UpInOpenCloseCirclePos; } else { Position = GameSettings.Instance.DownInOpenCloseCirclePos; } Close(); }
public void OpenOn(HorizontalPipe hp) { if (hp == HorizontalPipe.UP) { Position = GameSettings.Instance.UpOutOpenCloseCirclePos; } else { Position = GameSettings.Instance.DownOutOpenCloseCirclePos; } Open(); }