public void MinigameFail() { Debug.Log("Minigame Fail"); resultText.text = "Failed... part lost :("; Databank.IncrementLevel(); triggered = true; }
public void MinigameSuccess() { Debug.Log("Minigame Success"); resultText.text = "Success!"; Databank.repairProgress++; Databank.IncrementLevel(); triggered = true; }
public Databank LoadData(string _databank) { Databank dataBank = new Databank(); IDictionary databank = Json.Deserialize(_databank) as IDictionary; IDictionary databankDictionary = databank ["DataBank"] as IDictionary; IDictionary DailougeSystem = databankDictionary ["DailougeSystem"] as IDictionary; IDictionary lettersData = databankDictionary ["Letters"] as IDictionary; // IList enemyList = databankDictionary ["EnemiesData"] as IList; dataBank.LettersData = LoadLettersData(lettersData); //dataBank.Foods = LoadFoodData (foodList); // dataBank.Enemies = LoadEnemiesData (enemyList); return(dataBank); }
public void StartGame() { Debug.Log("Restart Game"); Databank.Reset(); SceneManager.LoadSceneAsync("MainScene"); }