MVH/Scripts/CoroutineStarter.cs

14 lines
278 B
C#
Raw Permalink Normal View History

2024-06-07 00:47:07 +02:00
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);
}
}