I really don't understand why this doesn't work, the mouse clicks are detected when I use Input.GetMouseButtonDown(0)
I added a tk2dButton to my sprite and also my script called LButton with the following code :
using UnityEngine;
using System.Collections;
public class LButton : MonoBehaviour {
tk2dButton LeftButton;
void Start ()
{
LeftButton = GetComponent<tk2dButton>();
LeftButton.ButtonUpEvent += Down;
}
void Down( tk2dButton source )
{
print("Down");
}
void Update () {
}
}
So as far as I can see I didn't do anything strange here...