public EventManager(IAchievementManager achievementManager, ILeaderboardManager leaderboardManager, IAssetManager assetManager, ILogger <EventManager> logger) { _achievementManager = achievementManager; _leaderboardManager = leaderboardManager; _assetManager = assetManager; _logger = logger; }
private void Start() { _manager = ServiceLocator.Instance.Resolve <ILeaderboardManager>(); _manager.Top3Response += manager_Top3Response; _manager.Get5Response += manager_Get5Response; PlayerAreaError.SetActive(false); Top3ErrorLabel.SetActive(false); Top3Container.SetActive(false); }
public override void Start() { base.Start(); _gameService = new MockGameService(); ServiceLocator.Instance.Register <global::IGameService>(ServiceLocator.NoFactory, _gameService); #if UNITY_ANDROID _leaderboardManager = new GooglePlayLeaderboardManager(); #endif #if UNITY_IOS _leaderboardManager = new AgnosticLeaderboardManager(); #endif Screen.sleepTimeout = SleepTimeout.NeverSleep; ServiceLocator.Instance.Register <ILeaderboardManager>(ServiceLocator.NoFactory, _leaderboardManager); StartCoroutine(NavigateToGameImpl()); }
public override void Awake() { Analytics.CustomEvent("GAME_START"); StatsCollector.Instance.Load(); _gameService = ServiceLocator.Instance.Resolve <IGameService>(); _leaderboardManager = ServiceLocator.Instance.Resolve <ILeaderboardManager>(); Player.LegacyPlayerData.Load(); Player.LegacyPlayerData.SessionCount++; StoreAchievementDB.Load(); TransientData.AppStarted = _gameService.GetServerDateTime(); if (Services.GameModeService.IsFirstTimeLaunch) { LocalData.FirstOpenDate = DateTime.Now; } LocalData.SessionStart = DateTime.Now; Twitter.Init(); FB.Init(); }
public SeriesController(ISeriesManager seriesManager, ILeaderboardManager leaderboardManager) { SeriesManager = seriesManager; LeaderboardManager = leaderboardManager; }
public LeaderBoardDlgModel(ILeaderboardManager leaderboardManager, UserManager <SporeServerUser> userManager) { _leaderboardManager = leaderboardManager; _userManager = userManager; }
public LeaderboardController(ILeaderboardManager manager) { _manager = manager; }
private void Start() { _leaderboardManager = ServiceLocator.Instance.Resolve <ILeaderboardManager>(); }
public RatingsController(RateMyPDbContext context, ILeaderboardManager leaderboardManager) { m_context = context; m_leaderboardManager = leaderboardManager; }