Little fix

This commit is contained in:
r.nikolin 2023-10-20 14:30:47 +03:00
parent 71add3c316
commit d504211785
1 changed files with 5 additions and 0 deletions

View File

@ -23,6 +23,7 @@ public class DissolveEffect : MonoBehaviour
[ContextMenu("Dissolve")] [ContextMenu("Dissolve")]
public void Dissolve() public void Dissolve()
{ {
_timeElapsed = 0;
_action = true; _action = true;
} }
@ -45,5 +46,9 @@ public class DissolveEffect : MonoBehaviour
_timeElapsed += Time.deltaTime; _timeElapsed += Time.deltaTime;
} }
else
{
_action = false;
}
} }
} }