- Home /
Question by
princepranay2000 · Apr 23, 2020 at 09:35 AM ·
c#scripting problemmovement3d
How to move player or character Left right by 14 unit every at button click on mobile
public void uiLeft()
{
currShift--;
transform.position += Vector3.left * moveDis;
Debug.Log(currShift);
}
this above code don't work for me because i don't have high level coding skills in unity or c# i want to move my player left right by 14 unity on each button click on mobile game
i want my player move like subway suffer
Thank you for your help in advance
Comment