
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
오류가 나는데 문제를 못 찾겠어서 질문남겼습니다.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public GameObject rain;
// Start is called before the first frame update
void Start()
{
InvokeRepeating("MakeRain", 0f, 1f);
MakeRain();
}
// Update is called once per frame
void Update()
{
}
void MakeRain()
{
Instantiate(rain);
}
}
작성한 코드 및 에러 메세지
UnassignedReferenceException: The variable rain of GameManager has not been assigned.
You probably need to assign the rain variable of the GameManager script in the inspector.
UnassignedReferenceException: The variable rain of GameManager has not been assigned.
You probably need to assign the rain variable of the GameManager script in the inspector.
UnityEngine.Object.Instantiate[T] (T original) (at <e97d84204f8d4aef92b538c5bab948f1>:0)
GameManager.MakeRain () (at Assets/Scripts/GameManager.cs:24)
