Add component linesec.

This commit is contained in:
2023-04-14 14:31:08 +08:00
parent 48349b598d
commit 3690adf5dd
3 changed files with 35 additions and 5 deletions

View File

@@ -44,7 +44,7 @@ namespace Cryville.Crtr.Components {
UpdateColor();
}
}
protected void UpdateColor() {
protected virtual void UpdateColor() {
if (!mesh.Initialized) return;
foreach (var mat in materials) {
mat.color = _color;