2024-10-19 02:54:12 +03:00
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
public class JoinCollider : MonoBehaviour
|
|
|
|
{
|
|
|
|
public CustomNetworkManager networkManager;
|
|
|
|
public GameObject door;
|
|
|
|
private void OnTriggerEnter(Collider other)
|
|
|
|
{
|
|
|
|
door.SetActive(true);
|
2024-10-19 15:28:48 +03:00
|
|
|
// networkManager.networkAddress = "localhost";
|
2024-10-19 02:54:12 +03:00
|
|
|
networkManager.StartClient();
|
|
|
|
}
|
|
|
|
}
|