UnityBiz/Assets/scripts/BankFolder/BankScript.cs

30 lines
463 B
C#
Raw Normal View History

2024-09-11 16:59:01 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BankScript : MonoBehaviour
{
public GameObject Bank;
void Update()
{
// Sprawdzenie, czy klawisz G zosta<74> naci<63>ni<6E>ty
if (Input.GetKeyDown(KeyCode.G))
{
TogglePanel();
}
}
// Funkcja do prze<7A><65>czania widoczno<6E>ci panelu
void TogglePanel()
{
Bank.SetActive(false);
}
}