using System.Collections; using System.Collections.Generic; using UnityEngine; public class Instractions : MonoBehaviour { public GameObject _instructions; bool IsDisplayingInstructions; // Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Tab) && !IsDisplayingInstructions) { _instructions.SetActive(true); IsDisplayingInstructions = true; } else if(Input.GetKeyDown(KeyCode.Tab) && IsDisplayingInstructions) { _instructions.SetActive(false); IsDisplayingInstructions = false; } } }