public void Update(GameTime gameTime) { base.Update(); if (cloud != null) { if (cloud.isActive) cloud.Update(this, gameTime); else cloud = null; } }
public void Special() { if (cloud != null) cloud = null; Vector2 v = new Vector2((int)(boundary.X + (boundary.Width * 2)), (int)(boundary.Y - boundary.Height)); cloud = new Cloud(cloudTexture, v, this); }