using System.Collections; using System.Collections.Generic; using Unity.Netcode; using UnityEngine; using UnityEngine.UI; namespace Unity.Multiplayer.Samples.BossRoom { public class StartButtonScipt : NetworkBehaviour { public Button StartButton; private void Start() { StartButtonSetter(); } void StartButtonSetter() { if(IsServer) { StartButton.gameObject.SetActive(true); StartButton.interactable = false; } } public void InteractableTruer(bool flag) { StartButton.interactable=flag; } } }