36 lines
739 B
C#
36 lines
739 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace ZC
|
|
{
|
|
public enum TipsDataType
|
|
{
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class TipsData : ScriptableObject
|
|
{
|
|
public List<TipsSData> Datas = new List<TipsSData>();
|
|
|
|
public string GetData(TipsDataType tipsType)
|
|
{
|
|
foreach (var tipsSData in Datas)
|
|
{
|
|
if (tipsSData.tipsType == tipsType)
|
|
{
|
|
return tipsSData.context;
|
|
}
|
|
}
|
|
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class TipsSData
|
|
{
|
|
public TipsDataType tipsType;
|
|
public string context;
|
|
}
|
|
} |