public static void ShowLimitMessage() { string chineseContent = GameDataUtils.GetChineseContent(510119, false); string petTypeName = PetManagerBase.GetPetTypeName(InstanceManagerUI.GetInstanceLimitPetType()); DialogBoxUIViewModel.Instance.ShowAsConfirm("提示", string.Format(chineseContent, petTypeName), null, "确定", "button_orange_1", null); }
private void RefreshPetLimit() { int instanceLimitPetType = InstanceManagerUI.GetInstanceLimitPetType(); if (instanceLimitPetType > 0) { this.m_goPetLimit.SetActive(true); this.m_lblPetLimitText.set_text("宠物限制"); ResourceManager.SetSprite(this.m_spPetLimitIcon, PetManagerBase.GetPetLimitType(instanceLimitPetType)); } else { this.m_goPetLimit.SetActive(false); } }
public static bool IsPetLimit(Pet dataPet) { return(dataPet == null || (InstanceManagerUI.InstanceID > 0 && (DataReader <FuBenJiChuPeiZhi> .Get(InstanceManagerUI.InstanceID) == null || InstanceManagerUI.GetInstanceLimitPetType() == dataPet.petType))); }