Esempio n. 1
0
        public override bool Run()
        {
            try
            {
                LotLocation location = LotLocation.Invalid;
                Lot         lot      = LotManager.GetLot(World.GetLotLocation(Destination, ref location));
                if (lot != null)
                {
                    if (Teleport.Perform(Actor, lot, true))
                    {
                        return(true);
                    }
                }

                return(base.Run());
            }
            catch (ResetException)
            {
                throw;
            }
            catch (Exception e)
            {
                Common.Exception(Actor, Target, e);
                return(false);
            }
        }
Esempio n. 2
0
 public void OnFailed(Sim s, float x)
 {
     try
     {
         Teleport.Perform(mSim, mDestination, false);
     }
     catch (Exception e)
     {
         Common.Exception(s, e);
     }
 }