private void logLocomotionAction(string locomotionType) { LocomotionController currentController = locomotionTracker.GetCurrentController(); string tier = (currentController != null) ? currentController.GetType().Name.Replace("Controller", "") : "undefined"; string callID = $"locomotion_{locomotionType}"; Service.Get <ICPSwrveService>().ActionSingular(callID, locomotionType, tier); }