Exemplo n.º 1
0
    /// <summary>
    /// Override of Apply method.
    /// </summary>
    public override void Apply()
    {
        if (inputText.text.Length <= 0)
        {
            return;
        }

        Properties.family = new Family(inputText.text);

        UIApi.CloseLastWindow();
    }
Exemplo n.º 2
0
    /// <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();
    }
Exemplo n.º 3
0
 public void Init()
 {
     instance = new UIApi();
 }
Exemplo n.º 4
0
 /// <summary>
 /// This function closes the pause window and resumes the game
 /// </summary>
 public void CloseWindow()
 {
     UIApi.CloseLastWindow();
     LevelApi.ResumeCurrentLevel();
 }
Exemplo n.º 5
0
 /// <summary>
 /// This function opens the pause window and pauses the game
 /// </summary>
 public void OpenPauseWindow()
 {
     UIApi.OpenWindow(WindowTypes.PauseMenu);
     LevelApi.PauseCurrentLevel();
 }