Hello, so I am making a scary game right now and what I want to do is when you come to contact with a game object (enemy), it enables via script a jumpscare image in the UI. However, I dont know how to go about this. I already tried this `using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CC3D : MonoBehaviour
{
void OnCollisionEnter(Collision Col)
{
if (Col.gameObject.name == "MainPlayer")
{
Enable(Col.gameObject.name == "ScareUIPanel") ;
}
}
}
`
but it didnt seem to work, im getting this error : Assets\CC#D.cs(12,13): error CS0103: The name ‘Enable’ does not exist in the current context
I know almost nothing about code so please dont yell at me haha, thanks in advanced!