/// <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();
    }
Beispiel #2
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();
    }
 /// <summary>
 /// This function closes the pause window and resumes the game
 /// </summary>
 public void CloseWindow()
 {
     UIApi.CloseLastWindow();
     LevelApi.ResumeCurrentLevel();
 }