35 lines
815 B
C#
35 lines
815 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// µã»÷×ªÒÆ
|
|
/// </summary>
|
|
public class TransferClick : PermanentTriggerBase
|
|
{
|
|
public Device_Base device_Base;
|
|
public Tool_Base tool_Base;
|
|
/// <summary>
|
|
/// OnMouseDown»Øµ÷
|
|
/// </summary>
|
|
private Action onMouseDownAction;
|
|
|
|
public void Init(Device_Base device_Base, Action onMouseDownAction)
|
|
{
|
|
this.device_Base = device_Base;
|
|
this.onMouseDownAction = onMouseDownAction;
|
|
}
|
|
public void Init(Tool_Base tool_Base, Action onMouseDownAction)
|
|
{
|
|
this.tool_Base = tool_Base;
|
|
this.onMouseDownAction = onMouseDownAction;
|
|
}
|
|
|
|
protected override void OnMDown()
|
|
{
|
|
base.OnMDown();
|
|
onMouseDownAction?.Invoke();
|
|
}
|
|
}
|