quantum-space-buddies/QSB/ConversationSync/ConversationManager.cs
Aleksander Waage c435ca4074 cleanup
2020-09-29 20:42:45 +02:00

26 lines
717 B
C#

using QSB.Events;
using UnityEngine;
namespace QSB.ConversationSync
{
public class ConversationManager : MonoBehaviour
{
public static ConversationManager Instance { get; private set; }
private void Start()
{
Instance = this;
}
public void SendPlayerOption(string text)
{
GlobalMessenger<int, string, ConversationType>.FireEvent(EventNames.QSBConversation, -1, text, ConversationType.Player);
}
public void SendCharacterDialogue(int id, string text)
{
GlobalMessenger<int, string, ConversationType>.FireEvent(EventNames.QSBConversation, id, text, ConversationType.Character);
}
}
}