public override int use(PlayerBase user, WorldBase world, Vector2 location, GameTime time, BinaryInputManager inputManager)
        {
            PlayerTaipir taipir = new PlayerTaipir(user.location, world, (Player)user);

            world.transformPlayer(taipir);
            return(base.use(user, world, location, time, inputManager));
        }
示例#2
0
        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)
            {
                PlayerTaipir taipir = new PlayerTaipir(user.location, world, (Player)user);
                world.transformPlayer(taipir);
                usedTapir = true;

                if (usedTapir && TotemRabbit.usedRabbit)
                {
                    if (MetaData.unlockCharacter(2))
                    {
                        MetaData.playUnlockCharacterAlert(2, world, world.player.location);
                    }
                }
            }
        }
 public TaiperStandardControlManager(PlayerTaipir entity) : base(entity)
 {
 }