Esempio n. 1
0
    private void CharacterHasCheck()
    {
        //있을때
        if (DBContainer.HasCharacter(nowSelectCharacterStyle) == true)
        {
            if (characterImage != null)
            {
                characterImage.color = Color.white;
            }

            if (GameStartButton != null)
            {
                GameStartButton.gameObject.SetActive(true);
            }
        }
        //없을때
        else
        {
            if (characterImage != null)
            {
                characterImage.color = new Color(0.1f, 0.1f, 0.1f, 1f);
            }

            if (GameStartButton != null)
            {
                GameStartButton.gameObject.SetActive(false);
            }
        }
    }
Esempio n. 2
0
 public void AchievementClearCheck()
 {
     if (IsAchivementClear(GPGSIds.achievement_100m) == true)
     {
         if (DBContainer.HasCharacter(characterStyle.Elvis) == false)
         {
             DatabaseLoader.Instance.UnlockCharacter(characterStyle.Elvis);
         }
     }
     if (IsAchivementClear(GPGSIds.achievement_200m) == true)
     {
         if (DBContainer.HasCharacter(characterStyle.Thief) == false)
         {
             DatabaseLoader.Instance.UnlockCharacter(characterStyle.Thief);
         }
     }
     if (IsAchivementClear(GPGSIds.achievement_300m) == true)
     {
         if (DBContainer.HasCharacter(characterStyle.WhatMan) == false)
         {
             DatabaseLoader.Instance.UnlockCharacter(characterStyle.WhatMan);
         }
     }
     if (IsAchivementClear(GPGSIds.achievement_500m) == true)
     {
         if (DBContainer.HasCharacter(characterStyle.Gombo) == false)
         {
             DatabaseLoader.Instance.UnlockCharacter(characterStyle.Gombo);
         }
     }
     if (IsAchivementClear(GPGSIds.achievement_character_devil) == true)
     {
         if (DBContainer.HasCharacter(characterStyle.Devil) == false)
         {
             DatabaseLoader.Instance.UnlockCharacter(characterStyle.Devil);
         }
     }
     if (IsAchivementClear(GPGSIds.achievement_character_greenman) == true)
     {
         if (DBContainer.HasCharacter(characterStyle.GreenMan) == false)
         {
             DatabaseLoader.Instance.UnlockCharacter(characterStyle.GreenMan);
         }
     }
     if (IsAchivementClear(GPGSIds.achievement_character_bluealien) == true)
     {
         if (DBContainer.HasCharacter(characterStyle.Alien) == false)
         {
             DatabaseLoader.Instance.UnlockCharacter(characterStyle.Alien);
         }
     }
 }