void Start() { Cursor.visible = false; Cursor.lockState = CursorLockMode.Locked; GameObject player = GameObject.FindGameObjectWithTag("Player"); interact = player.GetComponent <PlayerInteractivity>(); currentMouseState = MouseState.Default; }
private void Awake() { instance = this; }