Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Prown0 committed Dec 21, 2024
1 parent 0e9aa8e commit 7746734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions 302/Assets/Scripts/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ private IEnumerator StartStage()
}

_anomalyController = AnomalyManager.Instance.GetAnomalyController();

yield return null;

_anomalyController.StartAnomaly();
}

Expand Down
4 changes: 1 addition & 3 deletions 302/Assets/Scripts/LaptopFaceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ public class LaptopFaceController : LaptopScreenController
* fields *
**********/

// 오브젝트
public GameObject player;

// 내부 수치
private int TANGENT_MAX = 25;
private float TANGENT_CONST = 12.5f;
Expand Down Expand Up @@ -134,6 +131,7 @@ public void StartGazing()
// 쳐다보기 화면을 갱신하는 메서드
private void UpdateGazing()
{
GameObject player = GameObject.Find("Main Camera");
Vector3 forward = Vector3.ProjectOnPlane(transform.forward, Vector3.up).normalized;
Vector3 direction = Vector3.ProjectOnPlane(player.transform.position - transform.position, Vector3.up);
float dotProd = Vector3.Dot(direction, forward);
Expand Down

0 comments on commit 7746734

Please sign in to comment.