protected override void OnNodeAffiliationChanged(BoardNodeAffiliation affiliation) { renderer.material.color = AMoPUtils.GetColorForAffiliation(affiliation); if (Hidden) { setAlpha(0); } }
protected override void OnNodeAffiliationChanged(BoardNodeAffiliation affiliation) { ParticleSystem.ColorOverLifetimeModule color = particleSystem.colorOverLifetime; color.color = new ParticleSystem.MinMaxGradient(AMoPUtils.GetColorForAffiliation(affiliation)); }