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