public static BookNetMessage Send(Librarian.Book _book) { BookNetMessage msg = new BookNetMessage { Book = VariableViewerNetworking.ProcessBook(_book) }; msg.SendToAll(); return(msg); }
public static BookNetMessage Send(Librarian.Book _book, GameObject ToWho) { BookNetMessage msg = new BookNetMessage { Book = VariableViewerNetworking.ProcessBook(_book) }; msg.SendTo(ToWho); return(msg); }
public static void SendBookToClient(Librarian.Book Book) { if (!Book.UnGenerated) { foreach (var page in Book.BindedPages) { page.UpdatePage(); } } else { Book.GetBindedPages(); } BookNetMessage.Send(Book); }