public void removePage(string name) { Page page = pages[name]; //remove any references to this page ConnectionsLibrary.removeConnectionsTo(this, page); pages.Remove(name); }
public void removePageElement(GameObject element) { ConnectionsLibrary.removeConnectionsTo(storyRef, element); elements.Remove(element); GameObject.Destroy(element); }