private void Awake() { this.EnsureEventSystem(); XboxLiveServicesSettings.EnsureXboxLiveServicesSettings(); this.StatLabelText.text = string.Empty; this.StatValueText.text = string.Empty; }
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; }
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; }
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); }); }
public void Awake() { this.EnsureEventSystem(); XboxLiveServicesSettings.EnsureXboxLiveServicesSettings(); if (!XboxLiveUserManager.Instance.IsInitialized) { XboxLiveUserManager.Instance.Initialize(); } }
// 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(); } }