Add questLog interactable

This commit is contained in:
2023-07-08 18:08:18 +02:00
parent e76854a100
commit fab8aa77d7
4 changed files with 2088 additions and 6 deletions

View File

@@ -0,0 +1,35 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuestLogInteractable : MonoBehaviour
{
public GameObject journal;
public PlayerController playerController;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnMouseDown()
{
Debug.Log("MOUSE DOWN ON INVENTORY");
journal.SetActive(true);
playerController.cameraMovement = false;
}
public void CloseJournal()
{
Cursor.lockState = CursorLockMode.Locked;
journal.SetActive(false);
playerController.cameraMovement = true;
}
}