//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>(); }
void Start() { characterMovement = GameObject.FindGameObjectWithTag("Player").GetComponent <CharacterScreenMovementBehaviour>(); SetHasNews(AppManager.Instance.HasLeveledUp); }