public void Update(MyObject hero) { //... }
public Restorer(MyObject myobj, Memento memento) { Console.WriteLine("Memento and object pointer's setted"); myObject = myobj; this.memento = memento; }