chunk 1: core gameplay scripts scenes runtime assets

This commit is contained in:
2026-04-06 11:02:34 +03:00
parent fa0388bc79
commit 0d11a097d8
703 changed files with 2292651 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.InputSystem;
//using static UnityEditor.Experimental.GraphView.GraphView;
public class PlayerButton : MonoBehaviour
{
[SerializeField] private bool isAvailable = true;
public bool IsAvailable { get => isAvailable; set => isAvailable = value; }
[SerializeField] private Button button;
// Reference to the associated PlayerInput
public PlayerInput playerInput;
// Reference to the associated InputDevice
[HideInInspector] public InputDevice device;
private void Awake()
{
button = GetComponent<Button>();
playerInput = GetComponent<PlayerInput>();
}
private void OnEnable()
{
}
private void OnDisable()
{
}
private void Update()
{
}
}
/*player1 = PlayerInput.Instantiate(playerPrefab, controlScheme: "Arrows", pairWithDevice: Keyboard.current);
player2 = PlayerInput.Instantiate(playerPrefab, controlScheme: "WASD", pairWithDevice: Keyboard.current);*/