public string Do(string inputState) { if (Checker != null) { if (Checker.IsCanDoNow) { if (ActionIf != null) ActionIf.Do(ActionIf.State); } else if (ActionElse != null) { ActionElse.Do(ActionElse.State); } } return State; }