quantum-space-buddies/QSB/ConversationSync/ConversationManager.cs
Mister_Nebula 04268f71e3 cleanup
2020-09-22 22:26:31 +01:00

26 lines
709 B
C#

using QSB.Events;
using UnityEngine;
namespace QSB.ConversationSync
{
public class ConversationManager : MonoBehaviour
{
public static ConversationManager Instance { get; private set; }
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);
}
}
}