Example #1
0
 private static void _initLogFile()
 {
     if (
         RuntimePlatform.WindowsPlayer == Application.platform ||
         RuntimePlatform.WindowsEditor == Application.platform ||
         RuntimePlatform.OSXEditor == Application.platform
         )
     {
         LogFile.Init(Tools.PathCombine(Application.dataPath, "../Log/game_log.log"));
     }
     else
     {
         LogFile.Init(Tools.GetWriteableDataPath("game_log.log"));
     }
 }