Files
gmtk-2023/Assets/Scripts/AdventurerInteractable.cs
Amaan Shawkath d00929c814 Fixed
You can click on characters whilst the journal is open
You can click on characters whilst selecting dialog options

Added sfx option to character data
2023-07-09 13:25:47 +01:00

35 lines
847 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AdventurerInteractable : MonoBehaviour
{
public int m_spawnQuestID = 0;
[SerializeField] private string m_name = string.Empty;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnMouseDown()
{
if (GameManager.Instance.uiManager.InputBlocked)
return;
if (GameManager.Instance.dialogueController.DialogueInProgress)
return;
PlayerController.Instance.cameraMovement = false;
CharacterData character = CharacterManager.Instance.GetCharacterDataByName(m_name);
GameManager.Instance.dialogueController.DisplayCharacterText(character);
}
}