Exemplo n.º 1
0
 private void Awake()
 {
     this.EnsureEventSystem();
     XboxLiveServicesSettings.EnsureXboxLiveServicesSettings();
     this.StatLabelText.text = string.Empty;
     this.StatValueText.text = string.Empty;
 }
Exemplo n.º 2
0
    private void Awake()
    {
        this.EnsureEventSystem();
        XboxLiveServicesSettings.EnsureXboxLiveServicesSettings();

        if (this.stat == null)
        {
            if (XboxLiveServicesSettings.Instance.DebugLogsOn)
            {
                Debug.LogFormat("Leaderboard '{0}' does not have a stat configured and will not function properly.", this.name);
            }
            return;
        }

        this.headerText.text = this.stat.DisplayName;
        this.entryObjectPool = this.GetComponent <ObjectPool>();
        this.UpdateButtons();

#if ENABLE_WINMD_SUPPORT
        SocialManagerComponent.Instance.EventProcessed += this.SocialManagerEventProcessed;
#endif
        StatsManagerComponent.Instance.LocalUserAdded          += this.LocalUserAdded;
        StatsManagerComponent.Instance.GetLeaderboardCompleted += this.GetLeaderboardCompleted;
        this.statsAddedLocalUser  = false;
        this.socialAddedLocalUser = false;
    }
Exemplo n.º 3
0
    private void Awake()
    {
        XboxLiveServicesSettings.EnsureXboxLiveServicesSettings();

        // Ensure that a StatsManager has been created so that stats will be sync with the service as they are modified.
        var statsManager = StatsManagerComponent.Instance;
    }
Exemplo n.º 4
0
    private void Awake()
    {
        this.EnsureEventSystem();
        XboxLiveServicesSettings.EnsureXboxLiveServicesSettings();
        this.entryObjectPool = this.GetComponent <ObjectPool>();

#if ENABLE_WINMD_SUPPORT
        SocialManagerComponent.Instance.EventProcessed += this.OnEventProcessed;
#endif

        this.presenceFilterDropdown.options.Clear();
        this.presenceFilterDropdown.options.Add(new Dropdown.OptionData()
        {
            text = "All"
        });
        this.presenceFilterDropdown.options.Add(new Dropdown.OptionData()
        {
            text = "All Online"
        });
        this.presenceFilterDropdown.value = 0;
        this.presenceFilterDropdown.RefreshShownValue();

        this.presenceFilterDropdown.onValueChanged.AddListener(delegate
        {
            this.PresenceFilterValueChangedHandler(this.presenceFilterDropdown);
        });
    }
Exemplo n.º 5
0
    public void Awake()
    {
        this.EnsureEventSystem();
        XboxLiveServicesSettings.EnsureXboxLiveServicesSettings();

        if (!XboxLiveUserManager.Instance.IsInitialized)
        {
            XboxLiveUserManager.Instance.Initialize();
        }
    }
Exemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        XboxLiveServicesSettings.EnsureXboxLiveServicesSettings();
        this.logText        = string.Empty;
        this.random         = new System.Random();
        this.gameSaveHelper = new GameSaveHelper();
        this.logLines       = new List <string>();

        if (this.XboxLiveUser == null)
        {
            this.XboxLiveUser = XboxLiveUserManager.Instance.GetSingleModeUser();
        }
    }