thanks for your help y have a working scrip for mi dancer is in java but i need to change the "getAxis" for click in the pink buttons of the image thanks #pragma strict internal var animator : Animator; var v : float; var h : float; function Start () { animator = GetComponent(Animator); } function Update () { v = Input.GetAxis("Vertical"); h = Input.GetAxis("Horizontal"); } function FixedUpdate (){ animator.SetFloat ("SALSA", v); animator.SetFloat ("BAILE", h); }
You just need something like: Code (CSharp): v = 0; h = 0; if(pinkButton1(...)) v = 1F; if(pinkButton2(...)) h = 1F; (in OnGUI)