The code below does not work. It does not throw a debug message and it does not change the application level. Why? (It is a component of a new UI Button (4.6) that IS interactable)
using UnityEngine;
using System.Collections;
using UnityEngine.EventSystems;
public class LoadAppButton : MonoBehaviour, IPointerDownHandler {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void OnPointerDown(PointerEventData data){
Debug.Log ("Button was clicked");
Application.LoadLevel ("mapscene");
}
}