示例#1
0
 public void SetDifficultyToGoddess()
 {
     gm.goalDifficulty = GameMaster.GameDifficulty.goddess;
     PlayerPrefs.SetString("GameDifficulty", "Goddess");
     if (onDifficultyChange != null)
     {
         onDifficultyChange();
     }
     for (int i = 0; i < difficultySettingsConfig.childCount; i++)
     {
         if (difficultySettingsConfig.GetChild(i).name == "ArrowButtonScreen_DifficultyGoddess")
         {
             difficultySettingsConfig.GetChild(i).GetComponentInChildren <ArrowButton>().TurnOnArrow();
         }
         if (difficultySettingsConfig.GetChild(i).name == "ArrowButtonScreen_DifficultyLittleGirl")
         {
             difficultySettingsConfig.GetChild(i).GetComponentInChildren <ArrowButton>().TurnOffArrow();
         }
         if (difficultySettingsConfig.GetChild(i).name == "ResetWarning")
         {
             StartArch startArch = GameObject.FindObjectOfType <StartArch>();
             if (startArch != null)
             {
                 if (startArch.animationState != StartArch.AnimationState.WingsUpIdle)
                 {
                     difficultySettingsConfig.GetChild(i).GetComponentInChildren <Text>().text = "Difficulty will be set on next attempt";
                 }
             }
         }
     }
 }
示例#2
0
    public void SetDifficulty()
    {
        StartArch startArch = GameObject.FindObjectOfType <StartArch>();

        if (!(startArch != null))
        {
            SetDifficultySorter();
        }
        else
        {
            if (startArch.animationState == StartArch.AnimationState.WingsUpIdle)
            {
                SetDifficultySorter();
            }
        }
    }