WXMC/.svn/pristine/13/13227b53340105ada379b4186ba2b2dc8da46ebe.svn-base
2024-12-04 16:18:46 +08:00

13 lines
272 B
Plaintext

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PuzzleDefine;
public static class PuzzleUtils
{
public static T CreateObject<T>(GameObject prefab)
{
return MonoBehaviour.Instantiate(prefab).GetComponent<T>();
}
}