MVH/Scripts/CoroutineStarter.cs
2024-06-07 00:47:07 +02:00

14 lines
278 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CoroutineStarter : MonoBehaviour
{
private static CoroutineStarter instance = new();
public static void StartRoutine(IEnumerator routine)
{
instance.StartCoroutine(routine);
}
}