protected override void DrawPropertyGroupLayout(InspectorProperty property, TargetSideAttribute attribute, GUIContent label)
    {
        bool result = DeepReflection.CreateWeakInstanceValueGetter <bool>(property.ParentType, "mainSide")(property.ParentValues[0]);

        result = !result;

        CrossSceneDrawer.DrawPropertyGroupLayout <TargetSideAttribute>(this, property, attribute, label, result);
    }
Esempio n. 2
0
    protected override void DrawPropertyLayout(GUIContent label)
    {
        var property  = this.Property;
        var attribute = this.Attribute;

        bool result = DeepReflection.CreateWeakInstanceValueGetter <bool>(property.ParentType, "mainSide")(property.ParentValues[0]);

        CrossSceneDrawer.DrawPropertyGroupLayout <MainSideAttribute>(this, property, attribute, label, result);
    }