0
Unityの座標セットでプレハブを生成しようとしていますが、これは引き続き発生します。'Spawning.SpawnCube'は 'フィールド'ですが、 'メソッドグループ'が予期されました
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Spawning : MonoBehaviour {
public GameObject TestCube;
public GameObject SpawnCube;
public float CubeFallTime = 7.0f;
public Vector3 Pos;
void Start()
{
StartCoroutine(SpawnCube());
}
IEnumerator Spawn()
{
yield return new WaitForSeconds(CubeFallTime);
Instantiate(TestCube, new Vector3(0, 6, 0), Quaternion.identity);
}
}