From 759ae1cb89083fde201c98494cee3f3edb298f8c Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Fri, 27 Feb 2015 16:17:54 +0000 Subject: [PATCH] Fixed duplicate camera controller being created by Flash #84 --- Assets/Fungus/Dialog/Scripts/Dialog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Fungus/Dialog/Scripts/Dialog.cs b/Assets/Fungus/Dialog/Scripts/Dialog.cs index d8936661..1ffd141b 100644 --- a/Assets/Fungus/Dialog/Scripts/Dialog.cs +++ b/Assets/Fungus/Dialog/Scripts/Dialog.cs @@ -516,7 +516,7 @@ namespace Fungus cameraController.screenFadeTexture = CameraController.CreateColorTexture(new Color(1f,1f,1f,1f), 32, 32); cameraController.Fade(1f, duration, delegate { cameraController.screenFadeTexture = CameraController.CreateColorTexture(new Color(1f,1f,1f,1f), 32, 32); - cameraController.Fade(0f, duration, delegate {Destroy(cameraController);}); + cameraController.Fade(0f, duration, null); }); }