using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BaseMgr<T> where T:new()
{
    private static T instance;
    public static T Getinstance() 
    {
        if (instance==null)
        {
            instance = new T();
        }
        return instance;
    }

    public static T GetInstance()
    {
        if (instance == null)
        {
            instance = new T();
        }
        return instance;
    }

    public static T Instance()
    {
        if (instance == null)
        {
            instance = new T();
        }

        return instance;
    }

}
