mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 19:11:32 +00:00
17 lines
510 B
C#
17 lines
510 B
C#
using QSB.Utility;
|
|
using QSB.WorldSync;
|
|
using UnityEngine;
|
|
|
|
namespace QSB.Animation.NPC.WorldObjects;
|
|
|
|
internal abstract class NpcAnimController<T> : WorldObject<T>, INpcAnimController
|
|
where T : MonoBehaviour
|
|
{
|
|
public abstract CharacterDialogueTree GetDialogueTree();
|
|
|
|
public void StartConversation()
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnStartConversation));
|
|
|
|
public void EndConversation()
|
|
=> GetDialogueTree().RaiseEvent(nameof(CharacterDialogueTree.OnEndConversation));
|
|
} |