
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
2-6) 강의 중 블록이 복제되도록 하는 부분에서 에러가 발생하고 있습니다.
square와 관련된 에러로 보이는데, square 변수에 prefab을 드래그 해주어도 인식하지 못하는 것처럼 나타납니다.

작성한 코드 및 에러 메세지
gameManager.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class game : MonoBehaviour
{
public GameObject square;
void Start()
{
InvokeRepeating("makeSquare", 0.0f, 0.5f);
}
// Update is called once per frame
void Update()
{
}
void makeSquare()
{
Instantiate(square);
}
}
