Ejemplo n.º 1
0
 public void SetNormal()
 {
     state = StarState.Normal;
     //change sprite to yellow
     starSprite.spriteName = yellowStarPath;
     starSprite.MakePixelPerfect();
     //start to shine
     shineSprite.spriteName = yellowStarPath;
     shineSprite.MakePixelPerfect();
     shineLogic.StartShine();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     shine = gameObject.transform.Find("SpriteShine").gameObject.GetComponent <Shine>();
     shine.StartShine();
 }