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