예제 #1
0
    internal void FinishGame()
    {
        CatPictureManager.showRibbon = false;
        if (CatSelector.isRandom)
        {
            CatSelector.GetRandomCat();
            switch (CatSelector.rescuedCatCategory)
            {
            case "Common":
                if (!DataManager.Instance.rescuedCommonCats.Contains(CatSelector.rescuedCatNumber))
                {
                    CatPictureManager.showRibbon = true;
                    DataManager.Instance.rescuedCommonCats.Add(CatSelector.rescuedCatNumber);
                }
                break;

            case "Rare":
                if (!DataManager.Instance.rescuedRareCats.Contains(CatSelector.rescuedCatNumber))
                {
                    CatPictureManager.showRibbon = true;
                    DataManager.Instance.rescuedRareCats.Add(CatSelector.rescuedCatNumber);
                }

                if (!DataManager.Instance.unlockedRareCats.Contains(CatSelector.rescuedCatNumber))
                {
                    DataManager.Instance.unlockedRareCats.Add(CatSelector.rescuedCatNumber);
                }
                break;

            case "Special":
                if (!DataManager.Instance.rescuedSpecialCats.Contains(CatSelector.rescuedCatNumber))
                {
                    CatPictureManager.showRibbon = true;
                    DataManager.Instance.rescuedSpecialCats.Add(CatSelector.rescuedCatNumber);
                }

                if (!DataManager.Instance.unlockedSpecialCats.Contains(CatSelector.rescuedCatNumber))
                {
                    DataManager.Instance.unlockedSpecialCats.Add(CatSelector.rescuedCatNumber);
                }
                break;
            }
            DataManager.Save();
        }

        clearScene.transform.Find("panel/AdForMeowney").gameObject.SetActive(true);
        clearScene.SetActive(true);
        GameEndEventHandler();
        GetMeowney();
    }
예제 #2
0
    internal void FinishGame()
    {
        CatPictureManager.showRibbon = false;
        if (CatSelector.isRandom)
        {
            CatSelector.GetRandomCat();
            GetACat(CatSelector.rescuedCatCategory, CatSelector.rescuedCatNumber);
            DataManager.Save();
        }

        clearScene.transform.Find("panel/AdForMeowney").gameObject.SetActive(true);
        clearScene.SetActive(true);
        GameEndEventHandler();
        GetMeowney();
    }