public void ObtainAward(Item award) { switch (award.itemType) { case ItemType.Equipment: string tint = string.Format("获得 <color=orange>{0}</color> x{1}", award.itemName, award.itemCount); Sprite itemSprite = GameManager.Instance.gameDataCenter.allItemSprites.Find(delegate(Sprite obj) { return(obj.name == award.spriteName); }); expUICtr.SetUpTintHUD(tint, itemSprite); break; case ItemType.Consumables: itemSprite = GameManager.Instance.gameDataCenter.allItemSprites.Find(delegate(Sprite obj) { return(obj.name == award.spriteName); }); tint = string.Format("获得 <color=orange>{0}</color>x{1}", award.itemName, award.itemCount); expUICtr.SetUpTintHUD(tint, itemSprite); expUICtr.UpdateBottomBar(); break; case ItemType.UnlockScroll: expUICtr.SetUpUnlockScrollHUD(award); break; case ItemType.CraftingRecipes: expUICtr.SetUpCraftingRecipesHUD(award); break; case ItemType.CharacterFragment: tint = string.Format("获得字母碎片 <color=orange>{0}</color>", award.itemName); expUICtr.SetUpTintHUD(tint, null); break; } }