protected override void HandleGetStat(XboxLiveUser user, string statName) { this.isLocalUserAdded = true; StatValue statValue = XboxLive.Instance.StatsManager.GetStat(user, statName); if (statValue != null) { this.Value = statValue.AsNumber(); } }
private void Awake() { StatsManagerComponent.Instance.LocalUserAdded += (sender, args) => { StatValue statValue = XboxLive.Instance.StatsManager.GetStat(args.User, Name); if (statValue != null) { this.Value = statValue.AsNumber(); } isLocalUserAdded = true; }; }