1
Fork 0
mirror of https://github.com/Steffo99/gravity-fusion.git synced 2024-11-25 09:44:19 +00:00
gravity-fusion/Assets/Components/TempUpgradesToggler.cs

20 lines
420 B
C#
Raw Normal View History

2019-10-06 22:45:52 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TempUpgradesToggler : MonoBehaviour
{
public GameObject upgrades;
2019-10-07 11:44:26 +00:00
protected void Start() {
Debug.LogWarning("TempUpgradesToggler should not be used.");
}
protected void Update()
2019-10-06 22:45:52 +00:00
{
if(Input.GetKeyDown(KeyCode.P)) {
upgrades.SetActive(!upgrades.activeSelf);
}
}
}