コード例 #1
0
        public void SetData(FinalPlayerData Data)
        {
            Vector3 position = mDMono.transform.parent.localPosition;

            position.x = mDMono.transform.parent.localPosition.x > 0 ? 1700 : -1700;
            mDMono.transform.parent.localPosition = position;

            ItemData = Data ?? new FinalPlayerData();

            if (ItemData == null || ItemData.Name == null)
            {
                Empty.CustomSetActive(true);
                Filled.CustomSetActive(false);
                SetMysterious(true);
            }
            else
            {
                Empty.CustomSetActive(false);
                Filled.CustomSetActive(true);
                Replace.CustomSetActive(false);
                Icon.spriteName  = ItemData.IconName;
                Frame.spriteName = ItemData.FrameName;
                Name.text        = Name.transform.GetChild(0).GetComponent <UILabel>().text = ItemData.Name;
                LadderRank.text  = LadderRank.transform.GetChild(0).GetComponent <UILabel>().text = string.Format(EB.Localizer.GetString("ID_LADDER_RANK") + ":[fff348]{0}", (ItemData.LadderRank > 0 ? ItemData.LadderRank.ToString() : EB.Localizer.GetString("ID_ARENA_RANK_OUT_OF_RANGE")));
                Dead.CustomSetActive(ItemData.Dead);

                SetMysterious();
            }
        }
コード例 #2
0
 public void ShowWatchLogInfo(long win, long lose)
 {
     if (ItemData == null || ItemData.Name == null || ItemData.uid == 0)
     {
         return;
     }
     else
     {
         if (ItemData.uid != 0 && ItemData.uid == lose)
         {
             Dead.CustomSetActive(true);
             StartBootFlash();
         }
         if (ItemData.uid != 0 && ItemData.uid == win)
         {
             StartBootFlash();
         }
     }
 }