示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     if (current == null)
     {
         current = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(this);
     }
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     if (current == null)
     {
         current = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(this);
     }
     MakeInvisable(UISideBar);
     MakeInvisable(UITutKey);
     MakeInvisable(UIKey);
     MakeInvisable(UIHandle);
     MakeInvisable(UIPole);
     MakeInvisable(UILever);
     MakeInvisable(UIOil);
     MakeInvisable(UIClock);
     MakeInvisable(UICutter);
     MakeInvisable(UIMallet);
 }