Пример #1
0
    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();
        }
    }
Пример #2
0
 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;
     };
 }