예제 #1
0
 void Awake()
 {
     if (instance == null)
     {
         DontDestroyOnLoad(gameObject);
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
 }
예제 #2
0
        private void Read()
        {
            BookMenu menu = new BookMenu(BookId);

            Game1.AddMenu(menu);
        }