using System; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Ether { public class FrameData { private DictionaryEx allDataDic = new DictionaryEx(); public bool Add(string name, object value) { if (allDataDic.ContainsKey(name)) { return false; } allDataDic.Add(name, value); return true; } public T Get(string name) { if (allDataDic.TryGetValue(name, out object value)) { return (T)value; } return default; } } }