instantiate()方法 实例创建 C#语言总有问题
代码:var crossObj = GameObject.Instantiate<GameObject>(CrossPrefab)
报错如下Assets/Script/Board.cs(44,59): error CS0308: The non-generic method `UnityEngine.Object.Instantiate(UnityEngine.Object)' cannot be used with the type arguments
代码:var crossObj = GameObject.Instantiate(typeof(GameObject))("CrossPrefab");
报错如下Assets/Script/Board.cs(44,59): error CS1502: The best overloaded method match for `UnityEngine.Object.Instantiate(UnityEngine.Object)' has some invalid arguments
是泛型和非泛型的问题吗