İ have a draghandler class but it doesnt have a object and i want to call metot in that class How can i do that
You can make your class not derive from MonoBehaviour and you can call it anywhere.
public class DragHandler
{
public void Drag()
{ }
}
public class GameManager : MonoBehaviour
{
private void Start()
{
var handler = new DragHandler();
handler.Drag();
}
}
This is basic C# knowledge.