Beispiel #1
0
 public void SetData(string dataName, FSMVariable data)
 {
     if (string.IsNullOrEmpty(dataName))
     {
         Utility.Debug.LogError("Data name is invalid !");
     }
     fsmDataDict[dataName] = data;
 }
Beispiel #2
0
        public FSMVariable GetData(string dataName)
        {
            if (string.IsNullOrEmpty(dataName))
            {
                Utility.Debug.LogError("Data name is invalid !");
            }
            FSMVariable data = null;

            if (fsmDataDict.TryGetValue(dataName, out data))
            {
                return(data);
            }
            return(null);
        }