Skip to content

Commit

Permalink
调整了一些细节
Browse files Browse the repository at this point in the history
  • Loading branch information
DFVSQY committed Feb 20, 2017
1 parent 1017ed3 commit aa5e529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Assets/EmojiText/Scripts/EmojiData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public struct EmojiSprites
[CreateAssetMenu(fileName = "EmojiData",menuName = "CreateEmojiData",order = 1)]
public class EmojiData : ScriptableObject
{
//public Dictionary<string,Sprite> datas = new Dictionary<string,Sprite>();
public List<EmojiSprites> datas = new List<EmojiSprites>();
}

4 changes: 2 additions & 2 deletions Assets/EmojiText/Scripts/EmojiText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private IEnumerator ShowEmoji()
{
int index = emojis[i].posIndex;
Image image = null;
if(i >= transform.childCount) // 可复用的emoji不够时
if(i >= transform.childCount) // if emoji gameobject is not enough
{
GameObject go = new GameObject("emoji");
image = go.AddComponent<Image>();
Expand Down Expand Up @@ -140,7 +140,7 @@ private string ParserText(string content)
while(i < length)
{
char c = content[i];
int end = i + 3; //[微笑] 共占据4个字符
int end = i + 3; //[微笑]... It's four bytes
if(end >= length || !c.Equals('['))
{
sb.Append(c);
Expand Down

0 comments on commit aa5e529

Please sign in to comment.