Esempio n. 1
0
        public override void ItemClick()
        {
            ExplosiveItem tmp = Drop() as ExplosiveItem;

            tmp.frequency = ActionMode;
            Engine.Log.Info("Dropped explosive with frequency {0}", tmp.Frequency + 1);
        }
Esempio n. 2
0
 public void AttemptDetonate()
 {
     Map.Instance.GetObjects(Map.Instance.InitialCollisionBounds, delegate(MapObject mapObject)
     {
         ExplosiveItem tmp = mapObject as ExplosiveItem;
         if (tmp != null && tmp.ActionMode == ActionMode)
         {
             tmp.Die();
         }
     });
 }