Ejemplo n.º 1
0
    void Update()
    {
        if (_placing)
        {
            if (Input.GetKeyDown(RotateItemKey))
            {
                _item.Rotate();
            }

            UpdatePlacement();

            if (Input.GetButtonDown(PlaceItemButton))
            {
                Place();
            }
        }
    }