Basic player select screen

This commit is contained in:
RochesterX
2025-02-16 16:47:45 -05:00
parent f688173770
commit 543590347a
27 changed files with 8706 additions and 142 deletions

View File

@@ -0,0 +1,24 @@
using UnityEngine;
using UnityEngine.InputSystem;
public class PlayerCardCreator : MonoBehaviour
{
public static PlayerCardCreator Instance;
public GameObject playerJoinCardPrefab;
private void Awake()
{
if (Instance == null) Instance = this;
else
{
Destroy(gameObject);
}
}
public PlayerJoinCard CreateCard(PlayerInput input)
{
GameObject card = Instantiate(playerJoinCardPrefab, transform);
return card.GetComponent<PlayerJoinCard>();
}
}