Esempio n. 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.AsString();
        }
    }
 private void Awake()
 {
     StatsManagerComponent.Instance.LocalUserAdded += (sender, args) =>
     {
         StatValue statValue = XboxLive.Instance.StatsManager.GetStat(args.User, Name);
         if (statValue != null)
         {
             this.Value = statValue.AsString();
         }
         isLocalUserAdded = true;
     };
 }