Revert "Merge branch 'Lobby-System'"

This reverts commit f19e634ee9, reversing
changes made to 21c03f5b00.
This commit is contained in:
DerTyp187
2021-12-16 21:41:38 +01:00
parent f19e634ee9
commit 131d40dcda
55 changed files with 9 additions and 8377 deletions

View File

@@ -1,55 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class MenuPanelSwitch : MonoBehaviour
{
[SerializeField] private GameObject MainPanel, JoinPanel, HostPanel, OptionsPanel;
[SerializeField] private Button JoinBtn, HostBtn, OptionsBtn;
private Button BackBtn;
private void Start()
{
ResetToMain();
JoinBtn.onClick.AddListener(SwitchJoinPanel);
HostBtn.onClick.AddListener(SwitchHostPanel);
OptionsBtn.onClick.AddListener(SwitchOptionsPanel);
}
public void ResetToMain()
{
JoinPanel.SetActive(false);
HostPanel.SetActive(false);
OptionsPanel.SetActive(false);
MainPanel.SetActive(true);
}
public void TurnAllOff()
{
JoinPanel.SetActive(false);
HostPanel.SetActive(false);
OptionsPanel.SetActive(false);
MainPanel.SetActive(false);
}
public void SwitchJoinPanel()
{
TurnAllOff();
JoinPanel.SetActive(true);
}
public void SwitchHostPanel()
{
TurnAllOff();
HostPanel.SetActive(true);
}
public void SwitchOptionsPanel()
{
TurnAllOff();
OptionsPanel.SetActive(true);
}
}