Example #1
0
 void Awake()
 {
     obj  = this.gameObject;
     self = this;
     DontDestroyOnLoad(gameObject);  //防止销毁自己
 }
Example #2
0
 void Awake()
 {
     obj = this.gameObject;
     self = this;
     DontDestroyOnLoad(gameObject);  //防止销毁自己
 }