public Vector2 GetRawAxisCmd(EAxisCommand axisCmd) { switch (axisCmd) { case EAxisCommand.Movement: return(movementAxis); case EAxisCommand.View: return(viewAxis); case EAxisCommand.Aim: return(aimAxis); default: return(Vector2.zero); } }
public void SetRawAxisCmd(EAxisCommand axisCmd, Vector2 value) { switch (axisCmd) { case EAxisCommand.Movement: movementAxis = value; break; case EAxisCommand.View: viewAxis = value; break; case EAxisCommand.Aim: aimAxis = value; break; default: Debug.LogWarning("Axis Command is invalid."); return; } }