using System.Collections; using System.Collections.Generic; using UnityEngine; public class TempUpgradesToggler : MonoBehaviour { protected GameController gameController; protected void Awake() { gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent(); } protected void Update() { if(Input.GetKeyDown(KeyCode.Tab) && gameController.blackHole != null) { gameController.upgradePanel.gameObject.SetActive(!gameController.upgradePanel.gameObject.activeSelf); } } }