Script error "type expected"

Hello again!!

Sorry for being noob;

I was using a good script to make a joystick that works on mobile devices.

I just can’t compile it because of the error “type expected” :confused:

here’s the full script (by N3K.EN)

using System.Collections;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Collections.Generic;
using UnityEngine;

public class AndroidJoystick : MonoBehaviour, IDragHandler, IPointerUpHandler, IPointerDownHandler,
{


	private Image bgimg;
	private Image joyimg;
	public Vector3 InputDirection { set; get; }

	private void Start()
	{
		bgimg = GetComponent<Image> ();
		joyimg = Transform.GetChild(0).GetComponent<Image> ();
		InputDirection = Vector3.zero;
	}


	public virtual void OnDrag(PointerEventData ped)
	{
		Vector2 pos = Vector2.zero;
		if(RectTransformUtility.ScreenPointToLocalPointInRectangle 
			(bgimg.rectTransform, 
				ped.position,
				ped.pressEventCamera,
				out pos))
	
	{
		Pos.x = ( Pos.x / bgimg.RectTransform.sizeDelta.x);
		Pos.y = ( Pos.x / bgimg.RectTransform.sizeDelta.y);

		float x = (bgimg.RectTransform.pivot.x == 1) ? pos.x * 2 + 1 : pos.x * 2 - 1;
		float y = (bgimg.RectTransform.pivot.y == 1) ? pos.y * 2 + 1 : pos.y * 2 - 1;

		InputDirection = new Vector3 (x, 0 , y);
			InputDirection = (InputDirection.magnitude > 1) ? InputDirection.normalized : InputDirection;)

		joyimg.recTransform.anchoedPosition = 
			new Vector3(InputDirecion.x*(bgimg.RectTransform.sizeDelta.x/3)
						InputDirecion.z*(bgimg.RectTransform.sizeDelta.y/3));

	}
	}


	public virtual void OnPointerDonw(PointerEventData ped)
	{
		OnDrag (ped); 
	}



	public virtual void OnPointerUp(PointerEventData ped)
	{
		InputDirection = Vector3.zero;
		joyimg.RectTransform.anchoredPosition = Vector3.zero;
	}


}

You have an additional comma on the class definition line, as if to add another interface but you then go straight into the opening bracket. Remove that final comma before the { and it will likely compile again.