johnatm / itween

Automatically exported from code.google.com/p/itween
1 stars 2 forks source link

cameraFade not nulled in CameraFadeDestroy #54

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call CameraFadeDestroy
2. Call CameraFadeAdd
3. Call will fail because it thinks the camera already exists

What is the expected output? What do you see instead?
See above!

What version of the product are you using? On what operating system?
2.0.38 C# version

Please provide any additional information below.

- cameraFade not nulled in CameraFadeDestroy. Nulling it fixes the problem.

- I also suggest that the camera is always returned by CameraAdd. At present it 
returns null if the camera already exists but that then doesn't give the user 
access to the camera.

Original issue reported on code.google.com by sillyt...@gmail.com on 5 Jan 2011 at 1:58

GoogleCodeExporter commented 8 years ago
I wasn't able to reproduce this error.  I tried:

iTween.CameraFadeAdd();
yield return new WaitForSeconds(3);
iTween.CameraFadeDestroy();
yield return new WaitForSeconds(3);
iTween.CameraFadeAdd();

and it was successful. Am I missing something?

Original comment by pixelplacement on 6 Jan 2011 at 5:40