Hi,
I’m trying to change somethings in one game in Unity 5.0 but I’ve got this error : Assets/ButtonMessageBehaviour.cs(15,69): error CS0234: The type or namespace name Events' does not exist in the namespace
TouchScript’. (Are you missing an assembly reference?)
Here is the script:
using TouchScript.Gestures;
using UnityEngine;
using System.Collections;
public class ButtonMessageBehaviour : MonoBehaviour {
public GameObject target;
public string message;
// Use this for initialization
void Start () {
GetComponent<PressGesture>().StateChanged += HandleStateChanged;
}
private void HandleStateChanged (object sender, TouchScript.Events.GestureStateChangeEventArgs e) // CS0234
{
if(e.State == Gesture.GestureState.Ended){
target.SendMessage(message, SendMessageOptions.RequireReceiver);
}
}
}
I’ve made this game in Unity v4.3.2 and there this script has worked corectly, but after I’ve made update to Unity v5.0.0, this script gave me this error “CS0234”. I’ve tried different methods writing this script, but I haven’t found the corect once yet.
Can someone help me fix this error?