35 lines
656 B
C#
35 lines
656 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public enum InteractionType
|
|
{
|
|
Quest,
|
|
Shop,
|
|
Crafting,
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class Question
|
|
{
|
|
public string questionText;
|
|
public string[] options;
|
|
public int correctOptionIndex;
|
|
}
|
|
|
|
[CreateAssetMenu(menuName = "NPC Dialogue")]
|
|
public class NPCDialogue : ScriptableObject
|
|
{
|
|
[Header("Info")]
|
|
public string Name;
|
|
public Sprite Icon;
|
|
|
|
[Header("Interaction")]
|
|
public bool HasInteraction;
|
|
public InteractionType InteractionType;
|
|
|
|
[Header("Dialogue")]
|
|
public string Greeting;
|
|
[TextArea] public string[] Dialogue;
|
|
}
|