コード例 #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;
 }