30 lines
463 B
C#
30 lines
463 B
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
|