TheKingsRace/Assets/Scripts/UI/Lobby/LobbySwap.cs
2022-03-11 03:53:20 -06:00

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);
}
}
}