//==========================================================================
 //Ticks the spritesheet change
 //==========================================================================
 private void MainTick_Tick(object sender, EventArgs e)
 {
     if (Compiled)
     {
         UpSprite.Invalidate();
         DownSprite.Invalidate();
         LeftSprite.Invalidate();
         RightSprite.Invalidate();
         ProjectileSprite.Invalidate();
     }
 }
Example #2
0
 public void SetSprite(Sprite s)
 {
     this.GetComponent <SpriteRenderer>().sprite = s;
 }
Example #3
0
 public virtual void Update()
 {
     ProjectileSprite.Update();
 }
Example #4
0
 public virtual void Draw(SpriteBatch spriteBatch, Vector2 location)
 {
     ProjectileSprite.Draw(spriteBatch, location);
 }