SRMP-Public/SRMP/Networking/NetworkHostUI.cs
2023-05-29 22:23:11 +02:00

27 lines
670 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace SRMultiplayer.Networking
{
public class NetworkHostUI : MonoBehaviour
{
public GameObject OfflineMenu;
public GameObject OnlineMenu;
private void Awake()
{
OfflineMenu = transform.FindDisabled("OfflineMenu").gameObject;
OnlineMenu = transform.FindDisabled("OnlineMenu").gameObject;
}
public void SetOnlineStatus(bool online)
{
OfflineMenu.SetActive(!online);
OnlineMenu.SetActive(online);
}
}
}