Exemplo n.º 1
0
    void SetPreview(GameInputModel model)
    {
        _tilemap.ClearAllTiles();
        var placeModel = model.ToPlaceModel(_placeUseCase.PlaceTileMode);

        placeModel.Model = _allowTile;
        _tilemap.SetTileModel(placeModel);
    }
Exemplo n.º 2
0
 void PlaceTileRect(GameInputModel model)
 {
     if (model.State == GameInputState.PointerUp)
     {
         var placeModel = model.ToPlaceModel(PlaceTileMode.PlaceTileRect);
         placeModel.Model = SelectedTile;
         PlaceTile(placeModel);
         SelectedTile = null;
     }
 }