示例#1
0
 private void Awake()
 {
     if (!InitializeAssetManager())
     {
         Application.Quit();
     }
     RuntimeData.InitializeFonts();
     RuntimeData.InitializeLanguage(CultureCode.FR_FR);
     this.StartCoroutine(LoadScene());
 }
示例#2
0
 public static bool InitializeRuntimeData()
 {
     if (!RuntimeData.InitializeLanguage(GetCurrentCulture()))
     {
         Log.Error("[CRITICAL] Could not initialize language.", 23, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Configuration\\ApplicationStarter.cs");
         return(false);
     }
     if (!RuntimeData.InitializeFonts())
     {
         Log.Error("[CRITICAL] Could not initialize fonts.", 29, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Configuration\\ApplicationStarter.cs");
         return(false);
     }
     return(true);
 }