1
0
Fork 0

Small change to State change

This commit is contained in:
Saibotk 2018-04-24 02:43:14 +02:00
parent 22482fc990
commit 5c0c6b4a77
3 changed files with 9 additions and 6 deletions

View file

@ -144,7 +144,7 @@ public class GameController : MonoBehaviour {
{ Entity.Entities.BUG, bug },
{ Entity.Entities.COIN, coin }
};
ChangeState(GameState.INIT);
}
// Update is called once per frame
@ -152,7 +152,7 @@ public class GameController : MonoBehaviour {
if ( !engineInitDone ) {
engineInitDone = true;
Debug.Log("First Frame");
ChangeState(GameState.INIT);
ChangeState(GameState.STARTING);
}
if (Input.GetAxis("Pause") > 0) {
if (state == GameState.RUNNING && !pausedPressed) {
@ -177,7 +177,7 @@ public class GameController : MonoBehaviour {
switch ( nstate ) {
case GameState.INIT:
Init();
ChangeState(GameState.STARTING);
//ChangeState(GameState.STARTING);
break;
case GameState.STARTING:
Starting();

View file

@ -444,7 +444,7 @@ public class DungeonGenerator {
}
}
}
Debug.Log(r.GetCenter() + " " + r.spawnpoints.Count + " spawn points.");
//Debug.Log(r.GetCenter() + " " + r.spawnpoints.Count + " spawn points.");
}
public static void GenerateObjective(Room r) {

View file

@ -29,10 +29,13 @@ public class NotificationManager : MonoBehaviour {
}
}
public NotificationManager() {
messages = new List<Notification>();
delay = 0;
}
// Use this for initialization
void Start() {
delay = 0;
messages = new List<Notification>();
text = GetComponent<Text>();
Hide();
}