Esempio n. 1
0
 protected void CharacterAxisMove()
 {
     if (MoveCharacter && mCharacterMove != null)
     {
         mCharacterMove.SetInputAxis(new Vector3(horizontal, upDown, vertical));
     }
 }
Esempio n. 2
0
        /// <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();
        }