Пример #1
0
 void Start()
 {
     child               = gameObject.GetComponentInChildren <UISprite>().gameObject;
     particle            = gameObject.GetComponentInChildren <ParticleSystem>();
     particle.startColor = ColorEx.SpotColor(gameObject.name);
     sprite              = child.GetComponent <UISprite>();
     sprite.color        = ColorEx.SpotColor(gameObject.name);
     startColor          = ColorEx.SpotColor(gameObject.name);
     RePositionSpot();
 }
Пример #2
0
 public void EndFever()
 {
     sprite.color        = ColorEx.SpotColor(gameObject.name);
     particle.startColor = ColorEx.SpotColor(gameObject.name);
 }