king lobby stubbed & fixed clipping issue

This commit is contained in:
Melbyj1125
2022-03-09 15:00:01 -06:00
parent 7ae4b643a1
commit f8fc2da95d
10 changed files with 748 additions and 405 deletions

View File

@@ -0,0 +1,29 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LobbySwap : MonoBehaviour
{
GameObject playerLobby;
GameObject kingLobby;
// Start is called before the first frame update
void Start()
{
playerLobby = GameObject.Find("PlayerLobby");
kingLobby = GameObject.Find("KingLobby");
kingLobby.SetActive(false);
}
public void SwapLobby(){
if(playerLobby.active){
kingLobby.SetActive(true);
playerLobby.SetActive(false);
}
else{
playerLobby.SetActive(true);
kingLobby.SetActive(false);
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e0ba335dd24406440bdb8aefabd610b1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -14,11 +14,11 @@ public class Tooltip : MonoBehaviour
}
public void ShowTooltip(string curTooltip){
gameObject.SetActive(true);
this.gameObject.SetActive(true);
tooltipText.text = curTooltip;
}
public void HideTooltip(){
gameObject.SetActive(false);
this.gameObject.SetActive(false);
}
}