public void Awake() { if (instance != this) { instance = this; instance.StartCoroutine(Utils.AutoUpdater.GetLatestVersionDownload()); DontDestroyOnLoad(this); SteamAPI.Init(); CreateUI(); } }
public void Awake() { if (instance != this) { instance = this; instance.StartCoroutine(Utils.AutoUpdater.GetLatestVersionDownload()); DontDestroyOnLoad(this); SteamAPI.Init(); Logger.Debug("CreateUI"); try { CreateUI(); } catch (Exception e) { Logger.Error($"Unable to create UI! Exception: {e}"); } } }