/// <summary> /// Override of Apply method. /// </summary> public override void Apply() { if (inputText.text.Length <= 0) { return; } Properties.family = new Family(inputText.text); UIApi.CloseLastWindow(); }
/// <summary> /// Override of Apply method. /// </summary> public override void Apply() { if (inputText.text.Length <= 0) { return; } Properties.family.persons.Add(new Person(inputText.text)); UIApi.CloseLastWindow(); }
public void Init() { instance = new UIApi(); }
/// <summary> /// This function closes the pause window and resumes the game /// </summary> public void CloseWindow() { UIApi.CloseLastWindow(); LevelApi.ResumeCurrentLevel(); }
/// <summary> /// This function opens the pause window and pauses the game /// </summary> public void OpenPauseWindow() { UIApi.OpenWindow(WindowTypes.PauseMenu); LevelApi.PauseCurrentLevel(); }