Question by
Juanito Prefidero · Jan 11, 2016 at 06:20 AM ·
javascriptguiplayer movement
Im trying to control a 3d player with 4 GUI buttons and Im trying to attach the script below to the onClick function in the button, but my script isnt working can some help?
#pragma strict
var speed : float = 10;
function Update ()
{
Rigidbody.Find("player").velocity.y = speed;
}
Comment