void Awake() { if (instance == null) { DontDestroyOnLoad(gameObject); instance = this; } else if (instance != this) { Destroy(gameObject); } }
private void Read() { BookMenu menu = new BookMenu(BookId); Game1.AddMenu(menu); }