/// <summary> /// This function closes the pause window and resumes the game /// </summary> public void CloseWindow() { UIApi.CloseLastWindow(); LevelApi.ResumeCurrentLevel(); }
void Start() { LevelApi.StartLevel(1); }
/// <summary> /// This function opens the pause window and pauses the game /// </summary> public void OpenPauseWindow() { UIApi.OpenWindow(WindowTypes.PauseMenu); LevelApi.PauseCurrentLevel(); }