示例#1
0
        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();
        }
示例#2
0
        void RaisePlatform()
        {
            State = FireColumnState.Raised;
              LastActive = Game1.CurrentTime;

              Plume = new ParticlePlumeEffect(this, ActiveDuration, ParticlePlumeEffect.PlumeType.Fire);
        }