Ejemplo n.º 1
0
        protected override bool OnPerish(ActorBase collider)
        {
            Sucker sucker = new Sucker();

            sucker.OnActivated(new ActorActivationDetails {
                LevelHandler = levelHandler,
                Pos          = Transform.Pos,
                Params       = new[] { (ushort)lastHitDir }
            });
            levelHandler.AddActor(sucker);

            return(base.OnPerish(collider));
        }
Ejemplo n.º 2
0
        protected override bool OnPerish(ActorBase collider)
        {
            Sucker sucker = new Sucker();

            sucker.OnAttach(new ActorInstantiationDetails {
                Api    = api,
                Pos    = Transform.Pos,
                Params = new[] { (ushort)lastHitDir }
            });
            api.AddActor(sucker);

            return(base.OnPerish(collider));
        }