Exemplo n.º 1
0
        protected override void SetValues(SerializedProperty property, float[] values)
        {
            switch (property.propertyType)
            {
            case SerializedPropertyType.Vector2Int:
                property.vector2IntValue = VectorUtilities.FloatArrayToVector2Int(values);
                break;

            case SerializedPropertyType.Vector2:
                property.vector2Value = VectorUtilities.ArrayToVector2(values);
                break;
            }
        }