Exemplo n.º 1
0
        protected override bool OnPerish(ActorBase collider)
        {
            TurtleShell shell = new TurtleShell(speedX * 1.1f, 1.1f);

            shell.OnActivated(new ActorActivationDetails {
                LevelHandler = levelHandler,
                Pos          = Transform.Pos,
                Params       = new[] { theme }
            });
            levelHandler.AddActor(shell);

            Explosion.Create(levelHandler, Transform.Pos, Explosion.SmokeGray);

            return(base.OnPerish(collider));
        }
Exemplo n.º 2
0
        protected override bool OnPerish(ActorBase collider)
        {
            TurtleShell shell = new TurtleShell(speedX * 1.1f, 1.1f);

            shell.OnAttach(new ActorInstantiationDetails {
                Api    = api,
                Pos    = Transform.Pos,
                Params = new[] { theme }
            });
            api.AddActor(shell);

            Explosion.Create(api, Transform.Pos, Explosion.SmokeGray);

            return(base.OnPerish(collider));
        }