asdasdasd

This commit is contained in:
manhduyhoang90
2026-04-27 15:48:01 +07:00
parent 133f2de285
commit f39dd9a762
16 changed files with 23464 additions and 774 deletions

View File

@@ -8,7 +8,7 @@
public class _LobbyManager : MonoBehaviour
{
public GameObject lobbyPanel;
public GameObject characterSelectionPanel;
public _BasicSpawner spawner;
@@ -24,7 +24,6 @@
async void Start()
{
lobbyPanel.SetActive(false);
characterSelectionPanel.SetActive(true);
spawner = FindFirstObjectByType<_BasicSpawner>();
@@ -52,7 +51,7 @@
// đưa lên host để tạo player object, ở đây tạm thời chỉ log ra console
Debug.Log($"Player Name: {_profile.Name}, Class: {_profile.Role}");
// chuyển sang lobby panel
characterSelectionPanel.SetActive(false);
lobbyPanel.SetActive(true);
}

View File

@@ -14,7 +14,7 @@ public struct _PlayerProfile
public _Role Role;
}
public class PlayerInfo : NetworkBehaviour
public class _PlayerInfo : NetworkBehaviour
{
[Networked] public string playerName { get; set; }