From d504211785075fe82a4742847c1fe27786d35bdd Mon Sep 17 00:00:00 2001 From: "r.nikolin" Date: Fri, 20 Oct 2023 14:30:47 +0300 Subject: [PATCH] Little fix --- Assets/DissolveEffect.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Assets/DissolveEffect.cs b/Assets/DissolveEffect.cs index dad98283..5f5cbc86 100644 --- a/Assets/DissolveEffect.cs +++ b/Assets/DissolveEffect.cs @@ -23,6 +23,7 @@ public class DissolveEffect : MonoBehaviour [ContextMenu("Dissolve")] public void Dissolve() { + _timeElapsed = 0; _action = true; } @@ -45,5 +46,9 @@ public class DissolveEffect : MonoBehaviour _timeElapsed += Time.deltaTime; } + else + { + _action = false; + } } }