コード例 #1
0
        /// <summary>
        /// Gets the game level data service.
        /// </summary>
        /// <returns>The game level data service.</returns>
        public IPsdkGameLevelData                                       GetGameLevelDataService()
        {
            if (!isPsdkValid())
            {
                return(null);
            }

            if (null != _gldService)
            {
                return(_gldService);
            }

            _gldService = GettingServiceByReflection <IPsdkGameLevelData>("PsdkGameLevelDataService");

            if (null != _gldService)
            {
                return(_gldService);
            }

            if (!_silent)
            {
                UnityEngine.Debug.LogError("Please import GameLevelData.unitypackage !");
            }
            return(null);
        }
コード例 #2
0
        /// <summary>
        /// Setups the game level data.
        /// </summary>
        /// <returns><c>true</c>, if game level data was setuped, <c>false</c> otherwise.</returns>
        /// <param name="domain">Domain.</param>
        /// <param name="localDir">Local dir.</param>
        /// <param name="timeout">Timeout.</param>
        public bool     SetupGameLevelData()
        {
            registerInternalService(_gldService = GetGameLevelDataService());
            if (null != _gldService)
            {
                return(_gldService.SetupGameLevelData());
            }

            return(false);
        }