protected void CharacterAxisMove() { if (MoveCharacter && mCharacterMove != null) { mCharacterMove.SetInputAxis(new Vector3(horizontal, upDown, vertical)); } }
/// <summary>Send all the Inputs and Axis to the Animal</summary> protected override void SetInput() { horizontal = Horizontal.GetAxis; vertical = Vertical.GetAxis; upDown = UpDown.GetAxis; RawInputAxis = new Vector3(horizontal, upDown, vertical); if (MoveCharacter) { mCharacterMove?.SetInputAxis(RawInputAxis); } base.SetInput(); }