Snaparazzi/Assets/Scripts/PromptList.cs

22 lines
545 B
C#
Raw Normal View History

2024-01-27 11:24:47 +00:00
using System;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "PromptList", menuName = "ScriptableObjects/Prompt List", order = 1)]
public class PromptList : ScriptableObject
{
public List<Prompt> prompts = new List<Prompt>();
/// <summary>
/// Create a new entry with a unique ID
/// </summary>
[ContextMenu("Create Entry")]
private void CreateEntry()
{
Prompt temp = new Prompt();
temp.id = System.Guid.NewGuid().ToString();
prompts.Add(temp);
}
}