
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
안녕하세요.
1주차 빗방울 코딩하기 공부중입니다.
debug.log("비를 내려라")까지 정상작동하였는데 그거를 Instantiate 함수로 바꾸고 나니 플레이버튼을 누르니 아래 사진과 같은 오류 메세지가 뜹니다.
뭐가 문제인지 알 수 있을 까요? rain이 제대로 할당되지 않았다고 하는 것 같은데 어떻게 해결해야할지 모르겠습니다. (하라는데로 한것같은데 ㅠㅠ)

작성한 코드 및 에러 메세지
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class GameManager : MonoBehaviour
{
public GameObject rain; //Gameobject를 가져다 쓸 것이라고 선언
// Start is called before the first frame update
void Start()
{
InvokeRepeating("makeRain", 0, 0.5f); //makeRain이라는 함수를 0.5초마다 반복 실행
}
// 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.
