// Update is called once per frame void Update() { if (Input.GetKey(KeyCode.Space)) { GlobalStats.Level++; Application.LoadLevel("Stage " + GlobalStats.Level); if (GlobalStats.Level == 3) { GameplayGlobals.RestartGame(); GlobalStats.ResetStats(); } else { GameplayGlobals.RestartGameplay(); } } }
public void Init(GameplayGlobalsWindow window) { Window = window; Asset = window.Asset; DefaultValues = Asset.DefaultValues; }