36 lines
626 B
C#
36 lines
626 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using ModbusManager;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Script
|
|
{
|
|
public class test : MonoBehaviour
|
|
{
|
|
private void OnTriggerEnter(Collider other)
|
|
{
|
|
|
|
Debug.Log("进入");
|
|
}
|
|
|
|
private void OnTriggerExit(Collider other)
|
|
{
|
|
Debug.Log("tuichu");
|
|
|
|
|
|
}
|
|
|
|
private ModbusTcpClient client;
|
|
public RawImage raw;
|
|
|
|
|
|
|
|
|
|
private void OnDestroy()
|
|
{
|
|
client.CloseConnection();
|
|
}
|
|
}
|
|
} |