示例#1
0
    //private MenuCharacterBehaviour characterBehaviour;
    // Start is called before the first frame update
    void Start()
    {
        characterMovement = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterScreenMovementBehaviour>();
        SetOpenStatus(false);
        var currentFightIndex = PlayerPrefs.GetInt("CurrentFightIndex", 0);
        var numberOfLevels    = 31;

        var alradyFinishedAllLevels = currentFightIndex >= numberOfLevels;

        if (alradyFinishedAllLevels)
        {
            isFinished      = true;
            SpeechText.text = "You are free";
        }
    }
 void Start()
 {
     characterMovement = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterScreenMovementBehaviour>();
 }
示例#3
0
        void Start()
        {
            characterMovement = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterScreenMovementBehaviour>();

            SetHasNews(AppManager.Instance.HasLeveledUp);
        }