You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
678 B
C#
30 lines
678 B
C#
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;
|
|
}
|
|
}
|
|
}
|