mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-21 16:17:30 -05:00
37 lines
808 B
C#
37 lines
808 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LobbySwap : MonoBehaviour
|
|
{
|
|
public GameObject playerLobby;
|
|
public GameObject kingLobby;
|
|
|
|
public GameObject player;
|
|
public GameObject king;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
kingLobby.SetActive(false);
|
|
king.SetActive(false);
|
|
}
|
|
|
|
public void SwapLobby(){
|
|
if(playerLobby.active){
|
|
kingLobby.SetActive(true);
|
|
king.SetActive(true);
|
|
|
|
playerLobby.SetActive(false);
|
|
player.SetActive(false);
|
|
}
|
|
else{
|
|
playerLobby.SetActive(true);
|
|
player.SetActive(true);
|
|
|
|
kingLobby.SetActive(false);
|
|
king.SetActive(false);
|
|
}
|
|
}
|
|
}
|