public override void Update(GameTime gameTime) { if (State == FireColumnState.Normal && Game1.CurrentTime - LastActive > TimeBetweenActive) RaisePlatform(); if (State == FireColumnState.Raised && Game1.CurrentTime - LastActive > ActiveDuration) LowerPlatform(); if (Plume != null) { Plume.Update(); if (Plume.Destroy) Plume = null; } UpdateDrawbox(); }
void RaisePlatform() { State = FireColumnState.Raised; LastActive = Game1.CurrentTime; Plume = new ParticlePlumeEffect(this, ActiveDuration, ParticlePlumeEffect.PlumeType.Fire); }