i search how to move an object with the mouse , only after clicked on the object ( the same ) . I tried somes things but nothing happened . If u have an answer , please help me .
void Update()
{
if (Input.GetMouseButtonDown(0) && Mouse.Position.X == GameObject.X)
{
//Code here
}
}
The system dont understand Position.X after Mouse and X after GameObject
PS : I work for a game board , so i've a lot of objects , and i don't know how to use the fonction collid , i tried but without the mouse code ( the precedent code i try to find ) , i can't see if it works or not .
Sorry for my english .``