ND_SimulationAutomaticControl/Assets/Scripts/Line/LineConnect.cs

64 lines
930 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
public enum InterfaceType
{
None,
IN1,
IN1_100K,
IN2,
IN2_200K,
IN3,
IN3_200K,
IN4,
Õý12V,//+12V
GND,
GND1,
GND2,
GND3,
¸º12V,//-12V
Õý5V,
¸º5V,
ÁãV,
UI,
UI_100K,
UI_01uF,
UI_1uF,
UI_10uF,
O1_01uF,
O1_1uF,
O1_10uF,
OUT,
OUT1,
OUT2,
O1,
O2,
_1uF_star,
_1uF_end,
_10uF_star,
_10uF_end,
_51K_star,
_51K_end,
_100K_star,
_100K_end,
_200K_star,
_200K_end,
_250K_star,
_250K_end,
ת»»°å,
III,
AD1,
AD2
}
public class LineConnect : MonoBehaviour
{
public InterfaceType interfaceType = InterfaceType.None;
private void OnMouseDown()
{
Debug.Log(transform.name);
LineManager.instance.ClickPoint(transform);
}
}