Commit 649d0f62 authored by 18신대성's avatar 18신대성

사격모드일때 마우스 커서 안보이게 함

parent e4373b4d
...@@ -80,6 +80,9 @@ public class CameraController : MonoBehaviour ...@@ -80,6 +80,9 @@ public class CameraController : MonoBehaviour
player.anim.SetBool("isShooting", true); player.anim.SetBool("isShooting", true);
player.head.transform.Find("Head 19").gameObject.layer = LayerMask.NameToLayer("Head"); player.head.transform.Find("Head 19").gameObject.layer = LayerMask.NameToLayer("Head");
// Invisible mouse cursor
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;
} }
/// <summary> /// <summary>
/// Zoom out from player. /// Zoom out from player.
...@@ -111,6 +114,10 @@ public class CameraController : MonoBehaviour ...@@ -111,6 +114,10 @@ public class CameraController : MonoBehaviour
transform.position = previousPos; transform.position = previousPos;
PlayerController.inst.isPlayerShooting = false; PlayerController.inst.isPlayerShooting = false;
PlayerController.inst.isZooming = false; PlayerController.inst.isZooming = false;
// Visible mouse cursor
Cursor.visible = true;
Cursor.lockState = CursorLockMode.None;
} }
// Start is called before the first frame update // Start is called before the first frame update
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment