public string GetCurrentGameLanguage() { string gameLanguage = null; Debug.Log("Checking current game language"); try { gameLanguage = GalaxyInstance.Apps().GetCurrentGameLanguage(); Debug.Log("Current game language is " + gameLanguage); } catch (GalaxyInstance.Error e) { Debug.Log("Could not check current game language for reason " + e); } return(gameLanguage); }
// Checks if DLC specified by productID is installed on users machine public bool IsDlcInstalled(ulong productID) { bool isDlcInstalled = false; Debug.Log("Checking is DLC " + productID + " installed"); try { isDlcInstalled = GalaxyInstance.Apps().IsDlcInstalled(productID); Debug.Log("DLC " + productID + " installed " + isDlcInstalled); } catch (GalaxyInstance.Error e) { Debug.LogWarning("Could not check is DLC " + productID + " installed for reason " + e); } return(isDlcInstalled); }