Пример #1
0
        public override void OnUseItem(World world, Player player, ItemContainer itemContainer, Vector3Int tilePosition)
        {
            itemContainer.Apply(-1);

            world.PlaceBlock(tilePosition, _block);
        }
Пример #2
0
 public override void OnUseItem(World world, Player player, ItemContainer itemContainer, Vector3Int tilePosition)
 {
     world.DestroyBlock(tilePosition);
 }
Пример #3
0
 public virtual void OnUseItem(World world, Player player, ItemContainer itemContainer, Vector3 targetPosition)
 {
 }