Exemple #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();
 }
Exemple #2
0
 public void EndFever()
 {
     sprite.color        = ColorEx.SpotColor(gameObject.name);
     particle.startColor = ColorEx.SpotColor(gameObject.name);
 }