Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created September 3, 2018 16:47
Show Gist options
  • Save tsubaki/3cae7ccdd92b9cc2520215bbeb24402c to your computer and use it in GitHub Desktop.
Save tsubaki/3cae7ccdd92b9cc2520215bbeb24402c to your computer and use it in GitHub Desktop.
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