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