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)); } }
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); }
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); } } }