private void UpdateMain() { moduleHome.ResetCamera(); bool bHavePet = modulePet.FightingPet != null; UpdateFightingPet(bHavePet); bool bShowNpc = moduleNPCDating.isDating && moduleHome.showDatingModel; UpdateDatingModel(bShowNpc); if (bShowNpc) { level?.ToggleFightPet(true, false); moduleHome.HideOthers(moduleNPCDating.datingNpcModelName); } else { level?.ToggleFightPet(true, true); if (bHavePet) { moduleHome.HideOthersBut(Module_Home.PLAYER_OBJECT_NAME, Module_Home.FIGHTING_PET_OBJECT_NAME); } else { moduleHome.HideOthers(Module_Home.PLAYER_OBJECT_NAME); } } }
private void ToggleShowPet(bool toggle, bool hint = false) { //没有出战的宠物,显示无效 if (modulePet.FightingPet == null) { if (hint && toggle) { moduleGlobal.ShowMessage(298); } return; } if (level) { level.ToggleFightPet(toggle, m_btnHideBottom.isOn); } }