mirror of
https://github.com/Steffo99/gravity-fusion.git
synced 2024-11-25 01:34:18 +00:00
19 lines
420 B
C#
19 lines
420 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class TempUpgradesToggler : MonoBehaviour
|
|
{
|
|
public GameObject upgrades;
|
|
|
|
protected void Start() {
|
|
Debug.LogWarning("TempUpgradesToggler should not be used.");
|
|
}
|
|
|
|
protected void Update()
|
|
{
|
|
if(Input.GetKeyDown(KeyCode.P)) {
|
|
upgrades.SetActive(!upgrades.activeSelf);
|
|
}
|
|
}
|
|
}
|