using System; using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// µã»÷×ªÒÆ /// public class TransferClick : PermanentTriggerBase { public Device_Base device_Base; public Tool_Base tool_Base; /// /// OnMouseDown»Øµ÷ /// 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(); } }