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; + } } }