init
This commit is contained in:
34
Assets/TcgEngine/Scripts/Tools/TimeToolMono.cs
Normal file
34
Assets/TcgEngine/Scripts/Tools/TimeToolMono.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
public class TimeToolMono : MonoBehaviour
|
||||
{
|
||||
private static TimeToolMono _instance;
|
||||
|
||||
public Coroutine StartRoutine(IEnumerator routine)
|
||||
{
|
||||
return StartCoroutine(routine);
|
||||
}
|
||||
|
||||
public void StopRoutine(Coroutine routine)
|
||||
{
|
||||
StopCoroutine(routine);
|
||||
}
|
||||
|
||||
public static TimeToolMono Inst
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_instance == null)
|
||||
{
|
||||
GameObject ntool = new GameObject("TimeTool");
|
||||
_instance = ntool.AddComponent<TimeToolMono>();
|
||||
}
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user