22 lines
580 B
C#
22 lines
580 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class Multimeter_dangwei : MonoBehaviour, IPointerClickHandler
|
|
{
|
|
public Tool_Multimeter tool_Multimeter;
|
|
|
|
public void OnPointerClick(PointerEventData eventData)
|
|
{
|
|
if (eventData.button == PointerEventData.InputButton.Left)
|
|
{
|
|
tool_Multimeter.ChangeDangwei(true);
|
|
}
|
|
else if(eventData.button == PointerEventData.InputButton.Right)
|
|
{
|
|
tool_Multimeter.ChangeDangwei(false);
|
|
}
|
|
}
|
|
}
|