Commit e51e7c46 authored by Mitchie Maluschnig's avatar Mitchie Maluschnig
Browse files

score in trapeze increases johns level

parent bb618e15
......@@ -72,6 +72,7 @@ public class SilasSpeech : MonoBehaviour, Character {
return "...";
}
} else {
currentResponses = new string[] { };
return "...";
}
}
......
......@@ -18,7 +18,9 @@ public class GameManager : MonoBehaviour {
// Use this for initialization
void Start () {
if(ConversationStage >= 2) {
HasTalkedToAhava = true;
}
}
// Update is called once per frame
......
......@@ -2,6 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class TrapezeController : MonoBehaviour {
......@@ -18,6 +19,9 @@ public class TrapezeController : MonoBehaviour {
// Use this for initialization
void Start () {
score = 0;
collected = 0;
finishTime = Time.time + timeToFinish;
TimeRemaining = finishTime - Time.time;
}
......@@ -25,6 +29,13 @@ public class TrapezeController : MonoBehaviour {
// Update is called once per frame
void Update () {
TimeRemaining = finishTime - Time.time;
//End of Game
if(TimeRemaining <= 0) {
float levels = score / 2000;
GameManager.JohnLevel += levels;
SceneManager.LoadScene("Daytime");
}
}
private void FixedUpdate() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment