示例#1
0
    /// <summary>
    /// 设置角标
    /// </summary>
    void SetCornerTra()
    {
        RectTransform showContentParent = _contentShowText.transform.parent.GetComponent <RectTransform>();
        float         x = 0;

        if (ChatTool.IsPlay(_currData._playUid))
        {
            x = showContentParent.rect.width / 2;
        }
        else
        {
            x = -(showContentParent.rect.width / 2);
        }
        _cornerTra.localPosition = new Vector3(x, _cornerTra.localPosition.y);
    }
示例#2
0
 /// <summary>
 /// 是否是玩家自己发言
 /// </summary>
 void IsPlay()
 {
     if (_currData.IsTimeIntervalSign)
     {
         ChangeDialogBox(0);
     }
     else
     {
         if (ChatTool.IsPlay(_currData._playUid))
         {
             ChangeDialogBox(2);
         }
         else
         {
             ChangeDialogBox(1);
         }
         ShowData();
     }
 }