コード例 #1
0
        public override int use(PlayerBase user, WorldBase world, Vector2 location, GameTime time, BinaryInputManager inputManager)
        {
            PlayerCrocodile crocodile = new PlayerCrocodile(user.location, world, (Player)user);

            world.transformPlayer(crocodile);
            //Item_Bite
            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)
            {
                PlayerCrocodile crocodile = new PlayerCrocodile(user.location, world, (Player)user);
                world.transformPlayer(crocodile);
            }
        }
コード例 #3
0
 public CrocodileStandardControlManager(PlayerCrocodile entity) : base(entity)
 {
 }