How to script a Button press in C#, to trigger another event?
问题 I'm working on Unity, w/ Vuforia. I've got Virtual buttons that I need to act like the Up/Down Arrows on the keyboard to move an object which is not in its image target, so I'm searching for the basics. My class starts like this: public void OnButtonPressed(VirtualButtonAbstractBehaviour vb){ ... } What do I need to put in this to make it act like the up button? Without these virtual buttons, my script would move the object like this: void FixedUpdate(){ float moveHortizonal = Input.GetAxis(