I would like to understand this error, the strange thing is that it is having trouble with a script that runs fine in another version of the same environment.
Any help on understanding what I am looking at here would be helpful, Thanks!
The script(s) in question are -
using UnityEngine;
using UnityEngine.EventSystems;
using System;
using UnityEngine.Events;
public class PressHandler : MonoBehaviour, IPointerDownHandler {
[Serializable]
public class ButtonPressEvent : UnityEvent { }
public ButtonPressEvent OnPress = new ButtonPressEvent();
public void OnPointerDown(PointerEventData eventData) {
OnPress.Invoke ();
}
}
AND-----------------------------------
using UnityEngine;
using System.Runtime.InteropServices;
public class OpenLinkJSPlugin : MonoBehaviour {
public string DocToOpen;
public void OpenLinkJSPlug() {
#if !UNITY_EDITOR
openWindow(DocToOpen);
#endif
}
[DllImport("__Internal")]
private static extern void openWindow (string url);
}