Esempio n. 1
0
 public EventManager(IAchievementManager achievementManager, ILeaderboardManager leaderboardManager, IAssetManager assetManager, ILogger <EventManager> logger)
 {
     _achievementManager = achievementManager;
     _leaderboardManager = leaderboardManager;
     _assetManager       = assetManager;
     _logger             = logger;
 }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
        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());
        }
Esempio n. 4
0
    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();
    }
Esempio n. 5
0
 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;
 }
Esempio n. 8
0
 private void Start()
 {
     _leaderboardManager = ServiceLocator.Instance.Resolve <ILeaderboardManager>();
 }
Esempio n. 9
0
 public RatingsController(RateMyPDbContext context, ILeaderboardManager leaderboardManager)
 {
     m_context            = context;
     m_leaderboardManager = leaderboardManager;
 }