// these methods below might get called when someone is pressing a button // you could easily implement it with unitys new ui system :) public void Save(string text) { originator.Set(text); caretaker.Add(originator.StoreInMemento()); savedFiles = caretaker.GetCountOfSavedArticles(); currentArticle = savedFiles; }