Hello i have problem my input not work and i not know why ....my console not write error .... my Project settings input have buttons pls help my i not know fixed error here is my script: Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class DanceAnimation : MonoBehaviour { public Animator Anim; public string[] NameAnim; public int BoolInt; public Button[] Buttons; public void AnimationsButton() { Anim.SetBool("Dance", true); } void Update() { if (Anim.GetBool("Dance") == false) { BoolInt = -1; } else BoolInt = 1; for (int i = 0; i < NameAnim.Length; i++) { if (BoolInt == i) { Anim.SetBool(NameAnim[i], true); } else Anim.SetBool(NameAnim[i], false); } for (int a = 0; a < Buttons.Length; a++) { if (Input.GetButton(Buttons[a].name)) { BoolInt = a; } } } }