void Update() { if (Input.GetKey(KeyCode.A)) { changeAnimation.Delegate(changeAnimation.animationFlags[0]); } if (Input.GetKey(KeyCode.B)) { changeAnimation.Delegate(changeAnimation.animationFlags[1]); } if (Input.GetKey(KeyCode.C)) { changeAnimation.Delegate(changeAnimation.animationFlags[2]); } if (Input.GetKey(KeyCode.D)) { changeAnimation.Delegate(changeAnimation.animationFlags[3]); } }
public void ChangeAnimation(string animationFlag) { changeAnimation.Delegate(animationFlag); }