private void Start() { inputBinder = FindObjectOfType <InputBinder>(); anim = this.GetComponentInChildren <Animator>(); stats = FindObjectOfType <Stats_Jugador>(); rb = this.GetComponent <Rigidbody2D>(); inputBinder.BindAxis("Walk", Caminar); inputBinder.BindAxis("Aim", Apuntar); apuntando = false; enSuelo = true; }
private void Start() { mover = true; inputBinder = FindObjectOfType <InputBinder>(); index = 0; botones[index].GetComponent <Image>().color = Color.green; inputBinder.BindAxis("MenuMove", MoverMenu); }