Add custom cursors

This commit is contained in:
2023-07-09 16:49:21 +02:00
parent 8343609794
commit e15d9f610e
20 changed files with 1001 additions and 32 deletions

View File

@@ -13,10 +13,14 @@ public class AdventurerInteractable : MonoBehaviour
}
// Update is called once per frame
void Update()
void OnMouseEnter()
{
GameManager.Instance.uiManager.SetCursor(GameManager.Instance.m_talkCursor);
}
void OnMouseExit()
{
GameManager.Instance.uiManager.SetCursor(GameManager.Instance.m_defaultCursor);
}
private void OnMouseDown()
@@ -27,6 +31,7 @@ public class AdventurerInteractable : MonoBehaviour
if (GameManager.Instance.dialogueController.DialogueInProgress)
return;
GameManager.Instance.uiManager.BlockInput(true);
//PlayerController.Instance.cameraMovement = false;
CharacterData character = CharacterManager.Instance.GetCharacterDataByName(m_name);
GameManager.Instance.dialogueController.DisplayCharacterText(character);