void Update() { float horizontal = Input.GetAxis("Horizontal"); float vertical = Input.GetAxis("Vertical"); m_kid.DesireMoveDirection(horizontal, vertical); if (Input.GetKeyDown(KeyCode.Space)) { m_kid.DesireAction(); } }