Add() публичный Метод

public Add ( Memento m ) : void
m Memento
Результат void
 // 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;
 }