chrisgregan
10 years ago
7 changed files with 37 additions and 2 deletions
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 7dd53f3f0a79d441fb32e055767a1b17 |
||||
NativeFormatImporter: |
||||
userData: |
Binary file not shown.
@ -0,0 +1,18 @@
|
||||
using UnityEngine; |
||||
using UnityEngine.Events; |
||||
using System.Collections; |
||||
|
||||
namespace Fungus |
||||
{ |
||||
|
||||
public class ClickableSprite : MonoBehaviour |
||||
{ |
||||
public UnityEvent onSpriteClick; |
||||
|
||||
void OnMouseDown() |
||||
{ |
||||
onSpriteClick.Invoke(); |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue