public void Update() { if (Input.GetKeyDown(KeyCode.Space)) { Spacebar.ExecuteAction(this.gameObject); } }