
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
빗물이 바닥에 충돌 시의 함수 OnCollisionEnter2D 관련 에러 메시지 때문에 진행이 안됩니다. 단순히 pdf파일에 있는 코드를 복사 붙여넣기하였는데 error message 가 뜨네

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
void OnCollisionEnter2D(Collision2D coll)
{
if (coll.gameObject.tag == "ground")
{
Debug.Log("땅이다!");
}
}
}
}
