dear makri907
Transform player;
void Start(){
player = gameObject.Getcomponent();
}
void Update(){
if(input.GetMouseButtonDown(0)){
//Manipulate the player transform here…
}
}
So Thank you about your answer, I now study in academy but I still not well cording
I was busy so I couldn’t check your answer I’m so sorry
First of all read some unity documentation and GetMouseButtonDown() is used to move object on click of mouse button.
and in unity input manager handles all the input related events so here is the link of Input but GetMouseButtonDown() solves your problem.