Assets\Free Asset - 2D Handcrafted Art\Scripts\BulletControl.cs(7,76): error CS0535: 'BulletControl' does not implement interface member 'IBeginDragHandler.OnBeginDrag(PointerEventData)'
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class BulletControl : MonoBehaviour, IEndDragHandler, IDragHandler, IBeginDragHandler
{
public void OnDrag(PointerEventData eventData)
{
transform.position.y = eventData.pointerCurrentRaycast.screenPosition;
}
Vector3 moveVec;
public float speed = 5;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void FixedUpdate()
{
transform.Translate(Vector3.left * Time.deltaTime * speed);
}
}