Skip to content

Commit

Permalink
Merge pull request #173 from 2024FALL-SWPP/bugfix/Anomaly30
Browse files Browse the repository at this point in the history
플레이어가 날라갈 때 스테이지가 타임아웃으로 인한 성공처리되지 않도록 수정
  • Loading branch information
seozzi authored Nov 30, 2024
2 parents e98d1ec + a874ec4 commit 849a92c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ void Start()
gameManager = GameObject.Find("GameManager").GetComponent<GameManager>();
player = GameObject.Find("Player");
mainCamera = Camera.main;


Transform windowsParent = GameObject.Find("Classroom/WallLeft/windows").transform;
windows = new GameObject[10];
Expand Down Expand Up @@ -122,7 +121,6 @@ public void PlayerDieFromStorm(Vector3 windowPosition)
Vector3 targetPosition = new Vector3(this.player.transform.position.x, this.player.transform.position.y, -15f);
StartCoroutine(MovePlayerToPosition(targetPosition));


PlayerController playerController = this.player.GetComponent<PlayerController>();
playerController.Sleep();

Expand Down Expand Up @@ -151,6 +149,7 @@ private IEnumerator CallGameManagerSleepAfterDelay(float delay)

if (gameManager != null)
{
gameManager.SetStageNoClear(); // 혹시 날라갈동안 Anomaly time이 끝나서 성공할 수도 있으니
gameManager.Sleep();
}
}
Expand Down

0 comments on commit 849a92c

Please sign in to comment.