예제 #1
0
    public void RefreshEvolveReadState()
    {
        RefreshEvolveState();
        var key = new PetNoticeKey(NoticeType.PetEvolve, ID);

        Module_Notice.instance.SetNoticeReadState(key);
    }
예제 #2
0
    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);
    }
예제 #3
0
    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));
        }
    }