//****************************************************************************************************************************** // // FUNCTIONS // //****************************************************************************************************************************** //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> // Called each frame. /// </summary> private void Update() { DisableButton(); SetPlayerName(); //if(PlayerPrefs.GetString("TutorialComplete") == null || PlayerPrefs.GetString("TutorialComplete") == "") //{ // LevelButton.interactable = false; //} //if(PlayerPrefs.GetString("TutorialComplete") == "Yes") //{ // LevelButton.interactable = true; //} // Update level text if (LevelText != null && _Level != null) { LevelText.text = _Level.LevelName.ToString(); } // Update level text if (DifficultyText != null && _Difficulty != null) { DifficultyText.text = _Difficulty.Difficulty.ToString(); } // Update faction text if (FactionText != null) { FactionText.text = _Faction.ToString(); } // Update level thumbnail if (LevelThumbnail != null && _Level != null) { LevelThumbnail.sprite = _Level.LevelThumbnailSprite; } // Update temp level text if (TempLevelText != null && _Level != null) { TempLevelText.text = _Level.LevelName; } // Update temp diff text if (TempDiffText != null && _Difficulty != null) { TempDiffText.text = _Difficulty.Difficulty.ToString(); } }
//****************************************************************************************************************************** // // FUNCTIONS // //****************************************************************************************************************************** //////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> // Called each frame. /// </summary> private void Update() { DisableButton(); // Update level text if (LevelText != null && _Level != null) { LevelText.text = _Level.LevelName.ToString(); } // Update level text if (DifficultyText != null && _Difficulty != null) { DifficultyText.text = _Difficulty.Difficulty.ToString(); } // Update faction text if (FactionText != null) { FactionText.text = _Faction.ToString(); } // Update level thumbnail if (LevelThumbnail != null && _Level != null) { LevelThumbnail.sprite = _Level.LevelThumbnailSprite; } // Update temp level text if (TempLevelText != null && _Level != null) { TempLevelText.text = _Level.LevelName; } // Update temp diff text if (TempDiffText != null && _Difficulty != null) { TempDiffText.text = _Difficulty.Difficulty.ToString(); } }