Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using UnityEngine;
public class TouchAndActiveObject : MonoBehaviour
{
[SerializeField] GuidReference target;
private void OnTriggerEnter(Collider other)
{
target.gameObject.SetActive(true);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment