Пример #1
0
    public void BuyIndividualCharacterSkill()
    {
        skillController.BuySkill(skillController.keys[selectedCharacter]);
        enableSkillButton(false);
        SetBoostImageIcon(selectedCharacter, "Skill", true);
        characterAudio.BoostSound();
        RefreshCharacterPanel();
        Debug.Log("bought skill");
        FirebaseAnalytics.LogEvent("char_gen_skill_bought");
        if (selectedCharacter == 0)
        {
            Debug.Log("student bought skill");
            FirebaseAnalytics.LogEvent("char_Student_skill_bought");
        }
//			else if (selectedCharacter == 1 ){
//			Debug.Log("Reeda bought skill");
//			FirebaseAnalytics.LogEvent("Reeda_skill_bought");
//			}
//			else if (selectedCharacter == 2 ){
//			Debug.Log("Billy bought skill");
//			FirebaseAnalytics.LogEvent("Billy_skill_bought");
//			}
//			else if (selectedCharacter == 3 ){
//			Debug.Log("Brick bought skill");
//			FirebaseAnalytics.LogEvent("Brick_skill_bought");
//			}
//			else if (selectedCharacter == 4 ){
//			Debug.Log("connor bought skill");
//			FirebaseAnalytics.LogEvent("Connor_skill_bought");
//			}
//			else if (selectedCharacter == 5 ){
//			Debug.Log("chris bought skill");
//			FirebaseAnalytics.LogEvent("Chris_skill_bought");
//			}
//			else if (selectedCharacter == 6 ){
//			Debug.Log("alena bought skill");
//			FirebaseAnalytics.LogEvent("Alena_skill_bought");
//			}
//			else if (selectedCharacter == 7 ){
//			Debug.Log("dan bought skill");
//			FirebaseAnalytics.LogEvent("Dan_skill_bought");
//			}
//			else if (selectedCharacter == 8 ){
//			Debug.Log("bill bought skill");
//			FirebaseAnalytics.LogEvent("Nye_skill_bought");
//			}
    }