UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"On trigger, activate game object"
using UnityEngine; public class ActivateOnTrigger : MonoBehaviour { public GameObject objectToActivate; private void OnTriggerEnter(Collider other) { if (other.CompareTag("Player")) { objectToActivate.SetActive(true); } } }