private void ChangeColor() { if (targetMaterial) { targetMaterial.SetColor("_Tint", new Color(r.value, g.value, b.value, 1)); } else if (saveSystem) { saveSystem.currentData.MeanColor = new Color(r.value, g.value, b.value, 1); flock.ChangeColorOfAgent(saveSystem.currentData.MeanColor); } }