26 lines
630 B
C#
26 lines
630 B
C#
using NUnit.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace BrewMonster.UI
|
|
{
|
|
[CreateAssetMenu(fileName = "DialogScriptTableObject", menuName = "Scriptable Objects/DialogScriptTableObject")]
|
|
public class DialogScriptTableObject : ScriptableObject
|
|
{
|
|
public List<DialogResouce> lstPrefabDialog;
|
|
|
|
public GameObject GetPrefabDialog(string id)
|
|
{
|
|
return lstPrefabDialog.Find(x => x.id.Equals(id)).prefab;
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public struct DialogResouce
|
|
{
|
|
public string id;
|
|
public GameObject prefab;
|
|
}
|
|
}
|