38 lines
999 B
C#
38 lines
999 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.Internal;
|
|
|
|
public class MonoMgr : Singleton<MonoMgr>
|
|
{
|
|
private MonoController controller;
|
|
public MonoMgr()
|
|
{
|
|
GameObject obj = new GameObject("MonoController");
|
|
controller = obj.AddComponent<MonoController>();
|
|
}
|
|
public void AddUpdateListener(UnityAction func)
|
|
{
|
|
controller.AddUpdateListener(func);
|
|
}
|
|
public void RemoveUpdateListener(UnityAction func)
|
|
{
|
|
controller.RemoveUpdateListener(func);
|
|
}
|
|
public Coroutine StartCoroutine(IEnumerator routine)
|
|
{
|
|
return controller.StartCoroutine(routine);
|
|
}
|
|
|
|
public Coroutine StartCoroutine(string methodName,[DefaultValue("null")]object value)
|
|
{
|
|
return controller.StartCoroutine(methodName, value);
|
|
}
|
|
public Coroutine StartCoroutine(string methodName)
|
|
{
|
|
return controller.StartCoroutine(methodName);
|
|
}
|
|
|
|
}
|