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;
 }
Exemple #3
0
    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);
    }
Exemple #4
0
 public void StartGame()
 {
     Debug.Log("Restart Game");
     Databank.Reset();
     SceneManager.LoadSceneAsync("MainScene");
 }