Get() public method

public Get ( string key ) : string
key string
return string
Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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);
        }