// Start is called before the first frame update private IEnumerator Init() { JobData.Load(); SkillData.Load(); EnemyData.Load(); BattleTileData.Load(); BattlefieldData.Load(); BattleGroupData.Load(); BattleStatusData.Load(); ItemData.Load(); EquipData.Load(); ItemEffectData.Load(); LanguageData.Load(); DungeonData.Load(); RoomData.Load(); TreasureData.Load(); ConversationData.Load(); ShopData.Load(); DungeonGroupData.Load(); ExpData.Load(); NewCookData.Load(); yield return(new WaitForEndOfFrame()); InitManager(); MySceneManager.Instance.Load(); #if UNITY_EDITOR DebugCommand.Start(); #endif }
void DebugIt() { DebugCommand debug = new DebugCommand(); debug.Start(@"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\Mdbg.exe"); if (debug.Attach("6700", 500)) { Console.WriteLine("succed !"); } else { Console.WriteLine("Failed !"); } while (true) { String str = Console.ReadLine(); if (str.ToLower().Equals("exit")) { break; } else { //debug. } } if (debug.Detach(500)) { Console.WriteLine("成功脱离"); } else { Console.WriteLine("脱离失败"); } debug.Dispose(); Console.ReadLine(); }