using System.Collections; using System.Collections.Generic; using UnityEngine; public class check : MonoBehaviour { public bool Go = false; private void OnTriggerEnter(Collider other) { Go = true; } }