feature: Messages are now animated

This commit is contained in:
Gerard Gascón 2024-01-26 22:58:49 +01:00
parent 1c8fbc94e0
commit 923b7b6f62
6 changed files with 83 additions and 8 deletions

View file

@ -0,0 +1,11 @@
using UnityEngine;
namespace Utilities {
public static class MonoBehaviourExtensions {
public static void EnsureCoroutineStopped(this MonoBehaviour value, ref Coroutine routine) {
if (routine == null) return;
value.StopCoroutine(routine);
routine = null;
}
}
}