public void RefreshEvolveReadState() { RefreshEvolveState(); var key = new PetNoticeKey(NoticeType.PetEvolve, ID); Module_Notice.instance.SetNoticeReadState(key); }
public void RefreshFeedState() { var levelAttr = GetLevelCanFeed(); if (levelAttr == null) { return; } var key = new PetNoticeKey(NoticeType.PetFeed, ID); Module_Notice.instance.SetNoticeState(key, levelAttr.level > Level); }
public void RefreshEvolveState() { PetNoticeKey key = new PetNoticeKey(NoticeType.PetEvolve, ID); if (IsEvolveMax()) { Module_Notice.instance.SetNoticeState(key, false); } var costInfo = UpGradeInfo.upgradeCost; if (null == costInfo) { Module_Notice.instance.SetNoticeState(key, false); } else { Module_Notice.instance.SetNoticeState(key, costInfo.gold <= Module_Player.instance?.coinCount && PetProcess_Evolve.IsMatrialEnough(costInfo.items)); } }