Ejemplo n.º 1
0
        public override int use(PlayerBase user, WorldBase world, Vector2 location, GameTime time, BinaryInputManager inputManager)
        {
            PlayerRabbit rabbit = new PlayerRabbit(user.location, world, (Player)user);

            world.transformPlayer(rabbit);
            return(base.use(user, world, location, time, inputManager));
        }
        public override void onUse(WorldBase world, Item harvestTool, Vector2 location, TileType tileType, Entity user)
        {
            base.onUse(world, harvestTool, location, tileType, user);

            if (user is Player)
            {
                PlayerRabbit rabbit = new PlayerRabbit(user.location, world, (Player)user);
                world.transformPlayer(rabbit);
                usedRabbit = true;

                if (TotemTapir.usedTapir)
                {
                    if (MetaData.unlockCharacter(2))
                    {
                        MetaData.playUnlockCharacterAlert(2, world, world.player.location);
                    }
                }
            }
        }
 public RabbitStandardControlManager(PlayerRabbit entity) : base(entity)
 {
 }