Ejemplo n.º 1
0
        void DoProcess()
        {
            if (!(owner.Value is OpenCVForUnityPlayMakerActions.Size))
            {
                LogError("owner is not initialized. Add Action \"newSize\".");
                return;
            }
            OpenCVForUnity.CoreModule.Size wrapped_owner = OpenCVForUnityPlayMakerActionsUtils.GetWrappedObject <OpenCVForUnityPlayMakerActions.Size, OpenCVForUnity.CoreModule.Size>(owner);

            storeResult.Value = wrapped_owner.Equals(new OpenCVForUnity.CoreModule.Size((double)a_width.Value, (double)a_height.Value));

            Fsm.Event(storeResult.Value ? trueEvent : falseEvent);
        }