/// <summary> /// /// </summary> void Reinit() { XCoroutine.StopAll(); DG.Tweening.DOTween.KillAll(false); XLanguage.Reinit(); }
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(); } }
/// <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); }