2019-10-06 22:45:52 +00:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class TempUpgradesToggler : MonoBehaviour
|
|
|
|
|
{
|
2019-10-07 20:02:46 +00:00
|
|
|
|
protected GameController gameController;
|
2019-10-06 22:45:52 +00:00
|
|
|
|
|
2019-10-07 20:02:46 +00:00
|
|
|
|
protected void Awake() {
|
|
|
|
|
gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent<GameController>();
|
2019-10-07 11:44:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected void Update()
|
2019-10-06 22:45:52 +00:00
|
|
|
|
{
|
2019-10-07 21:29:58 +00:00
|
|
|
|
if(gameController.blackHole != null) {
|
|
|
|
|
if(Input.GetKeyDown(KeyCode.Tab) || Input.GetKeyDown(KeyCode.Escape)) {
|
|
|
|
|
gameController.upgradePanel.gameObject.SetActive(!gameController.upgradePanel.gameObject.activeSelf);
|
|
|
|
|
}
|
2019-10-06 22:45:52 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|