13 lines
272 B
Plaintext
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>();
|
|
}
|
|
}
|