16 lines
358 B
C#
16 lines
358 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class HostCollider : MonoBehaviour
|
||
|
{
|
||
|
public CustomNetworkManager networkManager;
|
||
|
public GameObject door;
|
||
|
private void OnTriggerEnter(Collider other)
|
||
|
{
|
||
|
Debug.Log("ONENTER");
|
||
|
door.SetActive(true);
|
||
|
networkManager.StartHost();
|
||
|
}
|
||
|
}
|