示例#1
0
文件: ViNoFPS.cs 项目: Joon-min/wiper
 void Awake()
 {
     if( instance == null ){
         instance=  this;
         DontDestroyOnLoad( gameObject );
     }else{
         Destroy( gameObject );
     }
 }
示例#2
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
         DontDestroyOnLoad(gameObject);
     }
     else
     {
         Destroy(gameObject);
     }
 }