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