mirror of
https://github.com/Steffo99/gravity-fusion.git
synced 2024-11-25 09:44:19 +00:00
19 lines
570 B
C#
19 lines
570 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class TempUpgradesToggler : MonoBehaviour
|
|
{
|
|
protected GameController gameController;
|
|
|
|
protected void Awake() {
|
|
gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameController>();
|
|
}
|
|
|
|
protected void Update()
|
|
{
|
|
if(Input.GetKeyDown(KeyCode.Tab) && gameController.blackHole != null) {
|
|
gameController.upgradePanel.gameObject.SetActive(!gameController.upgradePanel.gameObject.activeSelf);
|
|
}
|
|
}
|
|
}
|