示例#1
0
 public void OnDestroy()
 {
     GameObject.Destroy(dustCamera);
     GameObject.Destroy(cameraObject);
     GameObject.Destroy(cameraTexture);
     GameObject.Destroy(cameraRenderTexture);
     instance = null;
 }
示例#2
0
 public void Start()
 {
     DontDestroyOnLoad(this);
     instance = this;
 }
示例#3
0
 public void Awake()
 {
     DontDestroyOnLoad(this);
     instance = this;
 }