Пример #1
0
 void OnTriggerEnter(Collider col)
 {
     YesGameObject.SetActive(false);
     TextGameObject.SetActive(false);
     OriginalTextGameObject.SetActive(true);
     this.gameObject.SetActive(false);
 }
Пример #2
0
 void OnTriggerEnter(Collider col)
 {
     if (col.gameObject.CompareTag("Controller"))
     {
         YesGameObject.SetActive(true);
         NoGameObject.SetActive(true);
         TextGameObject.SetActive(true);
         this.gameObject.SetActive(false);
     }
 }