14 lines
278 B
C#
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);
|
||
|
}
|
||
|
}
|