public bool LoadEvent(SpecialEventType eventType)
 {
     for (int i = 0; i < this.m_EventDefs.Count; i++)
     {
         SpecialEventVisualDef def = this.m_EventDefs[i];
         if (def.m_EventType == eventType)
         {
             string name = FileUtils.GameAssetPathToName(def.m_Prefab);
             AssetLoader.Get().LoadGameObject(name, null, null, false);
             return(true);
         }
     }
     return(false);
 }
 public bool UnloadEvent(SpecialEventType eventType)
 {
     for (int i = 0; i < this.m_EventDefs.Count; i++)
     {
         SpecialEventVisualDef def = this.m_EventDefs[i];
         if (def.m_EventType == eventType)
         {
             GameObject obj2 = GameObject.Find(FileUtils.GameAssetPathToName(def.m_Prefab + "(Clone)"));
             if (obj2 != null)
             {
                 UnityEngine.Object.Destroy(obj2);
             }
         }
     }
     return(false);
 }