25 lines
624 B
C#
25 lines
624 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
/// <summary>
|
|
/// ÍòÓÃ±íµ²Î»
|
|
/// </summary>
|
|
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);
|
|
}
|
|
}
|
|
}
|