private GameObject CreateRelicsCard(RelicRewardAction action) { Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary.Add("BigDoubleValue", action.Reward.Amount); return(Singleton <PropertyManager> .Instance.InstantiateFromResources("UI/BossRewardItems/BossReward_Relics", Vector3.zero, Quaternion.identity, dictionary)); }
private static GameObject CreateRelicsCard(RelicRewardAction action) { Dictionary <string, object> dictionary = new Dictionary <string, object>(); dictionary.Add("BigDoubleValue", action.Reward.Amount); if (!string.IsNullOrEmpty(action.FriendId)) { dictionary.Add("StringValue", action.FriendId + ".png"); return(Singleton <PropertyManager> .Instance.InstantiateFromResources("UI/GiftItems/Rewards/GiftReward_Jelly", Vector3.zero, Quaternion.identity, dictionary)); } switch (action.Rarity) { case RarityEnum.Common: return(Singleton <PropertyManager> .Instance.InstantiateFromResources("UI/ChestItems/ChestItem_Relic_Common", Vector3.zero, Quaternion.identity, dictionary)); case RarityEnum.Rare: return(Singleton <PropertyManager> .Instance.InstantiateFromResources("UI/ChestItems/ChestItem_Relic_Rare", Vector3.zero, Quaternion.identity, dictionary)); default: return(Singleton <PropertyManager> .Instance.InstantiateFromResources("UI/ChestItems/ChestItem_Relic_Epic", Vector3.zero, Quaternion.identity, dictionary)); } }