コード例 #1
0
    private void SetStamp(Transform root, int stampId)
    {
        //IL_001c: Unknown result type (might be due to invalid IL or missing references)
        StampTable.Data data = Singleton <StampTable> .I.GetData((uint)stampId);

        if (data != null)
        {
            this.StartCoroutine(LoadStamp(root, stampId));
        }
    }
コード例 #2
0
    public bool IsValidStampId(int stampId)
    {
        if (stampId < 1)
        {
            return(false);
        }
        StampTable.Data data = Singleton <StampTable> .I.GetData((uint)stampId);

        if (data == null)
        {
            return(false);
        }
        return(true);
    }
コード例 #3
0
    private void PostUIStamp(int userId, int stampId, bool topPosition, bool forceScroll)
    {
        if (IsValidStampId(stampId))
        {
            StampTable.Data data = Singleton <StampTable> .I.GetData((uint)stampId);

            if (data != null)
            {
                AddNextChatItem(delegate(ChatItem chatItem)
                {
                    chatItem.Init(userId, talkerName, stampId);
                }, topPosition, forceScroll);
            }
        }
    }