controle of an gameobject

hi i have a problem with an object that i want move it by using C# script i try to use the function of velocity

then i create two button and i use an event trigger
and i use those function in the C# script but the object still don’t want to move ? can someone tell me where is the problem ?

This worked fine for me. Maybe the Rigidbody2D settings is causing the problem - compare to mine:


NOTE: I’ve set Freeze Position Y in order to avoid gravity in my test.