using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
using System.Reflection;
public class ActionController : MonoBehaviour
{
public static ActionController Instance;
private void Awake()
{
Instance = this;
}
public void DelayToCall(Action action,float time)
{
StartCoroutine(DelayToCallIEnumerator(action,time));
}
private IEnumerator DelayToCallIEnumerator(Action action, float time)
{
yield return new WaitForSeconds(time);
action();
}}
04-16
4952
05-19
9330