增加A2WToolBox工具集,增加Launch场景核LaunchPanel
This commit is contained in:
17
Assets/A2WToolBox/3rd/StateMachine/Samples/Scripts/Item.cs
Normal file
17
Assets/A2WToolBox/3rd/StateMachine/Samples/Scripts/Item.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class Item : MonoBehaviour
|
||||
{
|
||||
public event Action<Item> Triggered;
|
||||
|
||||
public bool isTarget;
|
||||
|
||||
public void OnMouseDown()
|
||||
{
|
||||
if (Triggered != null)
|
||||
{
|
||||
Triggered(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user