void DoProcess() { if (!(owner.Value is OpenCVForUnityPlayMakerActions.Rect)) { LogError("owner is not initialized. Add Action \"newRect\"."); return; } OpenCVForUnity.CoreModule.Rect wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Rect, OpenCVForUnity.CoreModule.Rect>(owner); storeResult.Value = wrapped_owner.Equals(new OpenCVForUnity.CoreModule.Rect((int)a_x.Value, (int)a_y.Value, (int)a_width.Value, (int)a_height.Value)); Fsm.Event(storeResult.Value ? trueEvent : falseEvent); }