void Update() { if (Input.GetKeyDown(KeyCode.LeftArrow)) { hp.Decrease(1); hp.Commit(); } if (Input.GetKeyDown(KeyCode.RightArrow)) { hp.Increase(1); hp.Commit(); } if (Input.GetKeyDown(KeyCode.X)) { DoWeirdStuff(); } }