Пример #1
0
        public override void OnCollide(Node other)
        {
            base.OnCollide(other);
            SmallExplosion x = new SmallExplosion(AbsolutePosition);

            Root.Instance.Scene.Spawn(x);
        }
Пример #2
0
        public override void OnCollide(Node other)
        {
            base.OnCollide(other);
            SmallExplosion x = new SmallExplosion(AbsolutePosition);

            Root.Instance.Scene.Spawn(x);

            if (l != null)
            {
                l.Kill   = true;
                l.Attach = null;
                l        = null;
            }
        }
Пример #3
0
        public override void OnCollide(Node other)
        {
            base.OnCollide(other);
            SmallExplosion x = new SmallExplosion(AbsolutePosition);

            Root.Instance.Scene.Spawn(x);

            /*if(other is SpaceShip)
             *          {
             *                  SpaceShip ss=(SpaceShip)other;
             *
             *  if (ss.Shield.CurrentCharge <= 10)
             *  {
             *      ss.Battery.CurrentEnergy -= EnergyDamage;
             *      if (ss.Battery.CurrentEnergy <= 0)
             *      {
             *          ss.Battery.CurrentEnergy = 0;
             *          ss.ControlsJamed = true;
             *      }
             *  }
             *          }*/
        }