miguelblefari Posted January 1, 2024 at 10:17 PM Share Posted January 1, 2024 at 10:17 PM using unityEngine; public class FPSAnimations : MonoBehaviour; { private animator anim; private FPSMoviment FPSMoviment; void Start() { anim = GetComponent<animator>(); fpsMoviment = GetComponent<FPSMoviment>(); } void Update() { anim.SetFloat("Horizontal", fpsMoviment.inputX); anim.SetFloat("Vertical", fpsMoviment.inputZ); } } Quote Link to comment Share on other sites More sharing options...
Administrators Fernando Mercês Posted March 11, 2024 at 02:32 PM Administrators Share Posted March 11, 2024 at 02:32 PM @miguelblefari falta um ponto-e-vírgula no fim da definição da classe, ou seja, no fim de tudo. 😉 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.