Ejemplo n.º 1
0
    /// <summary>
    ///
    /// </summary>
    void Reinit()
    {
        XCoroutine.StopAll();

        DG.Tweening.DOTween.KillAll(false);

        XLanguage.Reinit();
    }
Ejemplo n.º 2
0
 public int InsertLanguage(XLanguage model)
 {
     using (var sql = GetSqlConnection())
     {
         var data = sql.Query<int>("DeleteResource", new { model }, commandType: CommandType.StoredProcedure);
         sql.Close();
         return data.FirstOrDefault();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Use this method before doing anything. This is more or less a constructor,
 /// but you can't have constructors in a static class.
 /// </summary>
 /// <param name="language"></param>
 /// <param name="folderLocation"></param>
 public static void SetupLanguage(XLanguage language, string folderLocation)
 {
     currentLanguage = (int)language;
     xml             = new XMLManager(folderLocation + XMLFileName);
 }