feature: Messages are now animated
This commit is contained in:
parent
1c8fbc94e0
commit
923b7b6f62
6 changed files with 83 additions and 8 deletions
11
Assets/Scripts/Utilities/MonoBehaviourExtensions.cs
Normal file
11
Assets/Scripts/Utilities/MonoBehaviourExtensions.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue