mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-06-11 05:54:07 +00:00
16 lines
465 B
C#
16 lines
465 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace ConformalDecals.MaterialModifiers {
|
|
public class ColorPropertyMaterialModifier : MaterialModifier {
|
|
private readonly Color _color;
|
|
|
|
public ColorPropertyMaterialModifier(ConfigNode node) : base(node) {
|
|
_color = ParsePropertyColor(node, "color", false);
|
|
}
|
|
|
|
public override void Modify(Material material) {
|
|
material.SetColor(_propertyID, _color);
|
|
}
|
|
}
|
|
} |