/// <summary> /// Called when this object is enabled by Unity editor. /// </summary> public void OnEnable() { GPGSProjectSettings settings = GPGSProjectSettings.Instance; mConstantDirectory = settings.Get(GPGSUtil.CLASSDIRECTORYKEY, mConstantDirectory); mClassName = settings.Get(GPGSUtil.CLASSNAMEKEY, mClassName); mConfigData = settings.Get(GPGSUtil.ANDROIDRESOURCEKEY); mWebClientId = settings.Get(GPGSUtil.WEBCLIENTIDKEY); }
/// <summary> /// Called when this object is enabled by Unity editor. /// </summary> public void OnEnable() { GPGSProjectSettings settings = GPGSProjectSettings.Instance; mConstantDirectory = settings.Get("ConstDir", mConstantDirectory); mClassName = settings.Get(GPGSUtil.CLASSNAMEKEY); mConfigData = settings.Get(GPGSUtil.ANDROIDRESOURCEKEY); mWebClientId = settings.Get(GPGSUtil.WEBCLIENTIDKEY); mRequiresGooglePlus = settings.GetBool(GPGSUtil.REQUIREGOOGLEPLUSKEY, false); }
public static void Reload() { sInstance = new GPGSProjectSettings(); }