23 lines
567 B
C#
23 lines
567 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Network;
|
|
using UnityEngine;
|
|
|
|
public class JoinCollider : MonoBehaviour
|
|
{
|
|
public CustomNetworkManager networkManager;
|
|
public GameObject door;
|
|
private HttpRequests _httpRequests;
|
|
|
|
void Start()
|
|
{
|
|
_httpRequests = transform.GetComponentInParent<HttpRequests>();
|
|
}
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
door.SetActive(true);
|
|
// networkManager.networkAddress = _httpRequests.ServerListResponse[0];
|
|
networkManager.StartClient();
|
|
}
|
|
}
|