quantum-space-buddies/QSB/Animation/NPC/WorldObjects/NpcAnimController.cs

17 lines
510 B
C#
Raw Normal View History

2021-07-07 08:02:23 +00:00
using QSB.Utility;
using QSB.WorldSync;
2021-04-29 17:30:45 +00:00
using UnityEngine;
2022-03-03 03:46:33 +00:00
namespace QSB.Animation.NPC.WorldObjects;
internal abstract class NpcAnimController<T> : WorldObject<T>, INpcAnimController
where T : MonoBehaviour
2021-04-29 17:30:45 +00:00
{
2022-03-03 03:46:33 +00:00
public abstract CharacterDialogueTree GetDialogueTree();
2021-04-29 17:30:45 +00:00
2022-03-03 03:46:33 +00:00
public void StartConversation()
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnStartConversation));
2021-04-29 17:30:45 +00:00
2022-03-03 03:46:33 +00:00
public void EndConversation()
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnEndConversation));
}