示例#1
0
 /// <summary>
 /// Search the current dungeon's lua package for defined floor callbacks functions, and add those that were found.
 /// </summary>
 private void LoadScriptEvents()
 {
     foreach (var ev in LuaEngine.EnumerateDungeonFloorCallbackTypes())
     {
         string cbackn = LuaEngine.MakeDungeonMapScriptCallbackName(AssetName, ev);
         if (LuaEngine.Instance.DoesFunctionExists(cbackn))
         {
             ScriptEvents[ev] = new ScriptEvent(cbackn);
         }
     }
 }