public void Init() { Debug.Log("SocialSync.Init"); _coroutineFactory = GameApplication.Instance.CoroutineFactory; _connectionHandler = new ConnectionHandler(); _connectionHandler.Init(gameDB, _coroutineFactory); _loggerModule = CoreLogger.RegisterModule(GetType().Name); SocialStateData socialData = socialStateModel.GetState(); _socialConnectionStatus = new Dictionary <SocialNetwork, bool>(); _socialConnectionStatus.Add(SocialNetwork.Facebook, (socialData.facebookId != "")); _socialConnectionStatus.Add(SocialNetwork.GameCenter, (socialData.gameCenterId != "")); _socialConnectionStatus.Add(SocialNetwork.PlayServices, (socialData.googlePlayId != "")); _socialUserId = new Dictionary <SocialNetwork, string>(); _socialUserId.Add(SocialNetwork.Facebook, socialData.facebookId); _socialUserId.Add(SocialNetwork.GameCenter, socialData.gameCenterId); _socialUserId.Add(SocialNetwork.PlayServices, socialData.googlePlayId); Data.DataElement connConfig = GameApplication.GetConfiguration("connection"); if (!connConfig.IsNull) { _fakeFacebookId = (!connConfig.ContainsKey(_configKeyFakeFacebookId)) ? "0" : (string)connConfig[_configKeyFakeFacebookId]; _fakeGameCenterId = (!connConfig.ContainsKey(_configKeyFakeGameCenterId)) ? "0" : (string)connConfig[_configKeyFakeGameCenterId]; _fakePlayServicesId = (!connConfig.ContainsKey(_configKeyFakePlayServicesId)) ? "0" : (string)connConfig[_configKeyFakePlayServicesId]; } }
static LoggerModules() { SceneManager = CoreLogger.RegisterModule("SceneManager"); SocialServices = CoreLogger.RegisterModule("SocialServices"); AssetManager = CoreLogger.RegisterModule("AssetManager"); GameApplication = CoreLogger.RegisterModule("GameApplication"); Tasks = CoreLogger.RegisterModule("Tasks"); InputSystem = CoreLogger.RegisterModule("InputSystem"); }
public void Init() { _class = GetType().Name; _loggerModule = CoreLogger.RegisterModule(_class); Load(); syncConfigsSignal.AddListener(OnConfigSync); }
void Awake() { _loggerModule = CoreLogger.RegisterModule("SplashScreen"); }