mirror of
https://github.com/Steffo99/gravity-fusion.git
synced 2024-11-22 08:24:17 +00:00
21 lines
673 B
C#
21 lines
673 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(gameController.blackHole != null) {
|
|
if(Input.GetKeyDown(KeyCode.Tab) || Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(KeyCode.Menu)) {
|
|
gameController.upgradePanel.gameObject.SetActive(!gameController.upgradePanel.gameObject.activeSelf);
|
|
}
|
|
}
|
|
}
|
|
}
|