public override void StartInput(params object[] values) { base.StartInput(values); if (values != null && values.Length > 0) { RankToSend = (CommandRank)values[0]; } StartRange = (float)Time.ActiveMilliseconds + Leniency; EndRange = (float)Time.ActiveMilliseconds + TotalRange; }
/// <summary> /// Sends a CommandRank to the Handler, which handles the value given. /// </summary> /// <param name="commandRank">The CommandRank indicating how well the Player performed the action command.</param> protected void SendCommandRank(CommandRank commandRank) { Debug.Log($"Command for {Handler.Name} has sent a {nameof(CommandRank)} of {commandRank}"); Handler.OnCommandRankResult(commandRank); }