Skip to content

Commit

Permalink
change Cursor and laptopface floatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongho committed Dec 16, 2024
1 parent 80bdb24 commit f6df782
Show file tree
Hide file tree
Showing 4 changed files with 957 additions and 19 deletions.
4 changes: 4 additions & 0 deletions 302/Assets/Scenes/DefaultGameScene.unity
Original file line number Diff line number Diff line change
Expand Up @@ -10053,6 +10053,10 @@ PrefabInstance:
propertyPath: m_Name
value: LaptopFace
objectReference: {fileID: 0}
- target: {fileID: 1673758693359768105, guid: 7c34e61c4c1b39040bc8b4a56d34f904, type: 3}
propertyPath: m_TagString
value: floatable
objectReference: {fileID: 0}
- target: {fileID: 4455420850089973548, guid: 7c34e61c4c1b39040bc8b4a56d34f904, type: 3}
propertyPath: player
value:
Expand Down
7 changes: 0 additions & 7 deletions 302/Assets/Scripts/PauseMenuSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ void Update()

if (isPaused)
{
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;

if (Input.anyKeyDown && !Input.GetKeyDown(KeyCode.Escape))
{
Expand All @@ -49,11 +47,6 @@ void Update()
return;
}
}
else
{
Cursor.visible = true;
Cursor.lockState = CursorLockMode.None;
}
}

void TogglePause()
Expand Down
9 changes: 7 additions & 2 deletions 302/Assets/Scripts/PlayerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,16 @@ private void Start()

private void Update()
{
if (!isAnimating && Time.timeScale !=0f)
if (!isAnimating && Time.timeScale != 0)
{
HandleInput();
HandleCamera();
//HandleInput();
}
if (!isAnimating)
{
HandleInput();
}

}

private void FixedUpdate()
Expand Down
Loading

0 comments on commit f6df782

Please sign in to comment.