Created
September 3, 2018 16:47
-
-
Save tsubaki/3cae7ccdd92b9cc2520215bbeb24402c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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