public void ICommandExecuter_Update(ref List <CommandExcuted> listCommandExecute_Default_Is_Empty) { float fTime = Time.time; var listCommandInfo = p_pInputEventV2.listCommandInfo; foreach (var pCommandInfo in listCommandInfo) { CommandBase pCommand = pCommandInfo.pCommand; if (pCommand == null || pCommand.bIsInit == false) { continue; } SInputValue sValue = pCommandInfo.pInputInfoGroup.DoCalculate_Relate(); if (sValue.bIsInput == false) { continue; } pCommand.DoExcute(ref sValue); CommandExcuted pCommandExecuteData = new CommandExcuted(this, pCommand, sValue, fTime); listCommandExecute_Default_Is_Empty.Add(pCommandExecuteData); p_Event_OnExecuteCommand.DoNotify(new ICommandExecuteArg(pCommandExecuteData)); } }
public void DoExcute() { pCommandExcuted.DoExcute(ref sInputValue); }