private void UpdateDirtyProperties( ReactiveCalculator target, SerializedProperty property )
        {
            var currentValue = target.Expression;
            property.FindPropertyRelative( "_expression" ).stringValue = "";
            property.FindPropertyRelative( "_expression" ).stringValue = currentValue;

            property.serializedObject.ApplyModifiedProperties();
        }
Example #2
0
    private ReactiveCalculator CreateCalculator( IReactiveProperty<string> expression )
    {
        var result = new ReactiveCalculator( expression );

        result.SubscribeProperty( "strength", strength );
        result.SubscribeProperty( "agility", agility );

        return result;
    }