I am making a script that tells instructions on the screen, then destroy the trigger, but the script destroys every trigger with the script. here it is C#
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class Instructions : MonoBehaviour {
public Text text;
public string instruction;
public GameObject trigger;
void OnTriggerEnter(Collider Other){
text.text = (instruction);
Time.timeScale = 0;
}
void Update(){
if (Input.GetKey (KeyCode.Tab)) {
Time.timeScale = 1;
**DestroyObject (trigger);**
text.enabled = false;
}
}
}