Compare commits

..

5 Commits

Author SHA1 Message Date
16850fa764 Steam media: fresh screenshots and showcase for the new visuals
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:13:18 +06:00
36e4bb2a10 Round 6 fixes: held tools, headlamp glare, ladder openings, level horizon, roof hulls, rain hits, idle motion, belt packs, meadow variety
- Held tools sit lower and further right; the hammer faces forward and strikes about the camera's right
- Headlamp leaves held items, treats and vending machines alone (rendering layer NoLamp); other lights keep lighting them
- Hay grounded on the floor in world space (it floated)
- Deck fence opens at each ladder, rail colliders split around it; ladders moved to 2 m off the edge middle, clear of the intakes; climbing goes over a rail only if one is in the way
- Crew stand to the soil's up (Planet.Level): flat round the base, the ball's up past it, so the horizon stays level on a small planet
- Convex roof hulls for the crew cabin, garage, pitched roof and windmill tower; cabin box lowered to the eaves
- Rain and acid rain hits differ by surface: soil, grass, wood, metal
- Idle motion: dishes pan, sways sway, sensors turn, eyes blink, windmill turns in the breeze, reels and parked rotors tick over
- Belt: take tools off at the supply wall; hold E at a vending machine for a pack of 3 on the belt, LMB has one
- New meadow pieces: boulders, slab stones, crystals, mushrooms, stump, bulb plants
- -demofix checks for all of the above; loc rows in all 11 tables

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 22:52:05 +06:00
fd20af06ae Round-5 props in the game: beer cans, hand can, cigar, phone, lawn mower, farm machines
Bonchellon's round-5 models (ArtSource/Blender/remaster_v3_tools, 27 Nov) were made as
drop-in replacements: same names, children, pivots and material slots. Swapped in:
SM_BeerCan, SM_BeerCanCrushed, SM_HandCan, SM_HandCigar, SM_Phone, SM_Tool_LawnMower and
the four farm machines (icons only). The seven hand tools keep today's stylized remake,
SM_Tool_Shears is unused and SM_PhoneHand is a hand (none in first person).
Assets rebuilt (BuildAll); -demotreats, -demophone, -demohands run clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:51:57 +06:00
dd0430048b Trailer: HUD takes showed the phone's screen; cut.py renders in parallel
- The trailer, BotCapture and PhoneScreen picked "any" UIDocument; since the phone has
  its own (drawn into its screen in the hand) the first-person takes captured the
  phone's home screen instead of the HUD. They take UIRoot's document now.
- cut.py renders a whole film in GC_CUT_WORKERS processes (20 by default), each a
  stretch of frames as near-lossless x264, joined and encoded once on NVENC with the
  sound. Shake and grain are seeded by frame, so the result does not depend on the
  split. Main trailer 57 -> 13 min.
- polden.py and story.py read the single rolls folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:46:37 +06:00
9f6b749bad Store media shot again on the current build: screenshots, showcase, trailers
The trailer rolls lived in a folder that is gone, so everything was shot again
(-demotrailer, -stills) from today's build: new tools, deck props, console, T logo.
- 14 store screenshots from the -stills takes
- showcase WEBMs and banners rebuilt (Tools/Steam/showcase.py)
- the demo trailer is now an edl for cut.py (Tools/Trailer/edl_demo.py)
- tools find the project from their own location instead of the old path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 21:46:36 +06:00
141 changed files with 8355 additions and 5602 deletions

BIN
ArtSource/Blender/SM_Boulders.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Blender/SM_BulbPlants.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Blender/SM_Crystals.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Blender/SM_DeckTile.blend (Stored with Git LFS)

Binary file not shown.

BIN
ArtSource/Blender/SM_Shrooms.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Blender/SM_SlabStones.blend (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Blender/SM_Stump.blend (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,151 @@
"""GRASS CUTTER - more for the meadow than trees and the purple-veined spires:
SM_Boulders a cluster of round, weathered field stones (no veins), moss on the shady side
SM_SlabStones flat lilac slabs tipped up out of the ground, like an old wall gone over
SM_Crystals a clump of teal crystals growing out of a pale rock
SM_Shrooms giant alien mushrooms: cream stems, coral and teal caps with pale spots
SM_Stump a broken stump on its roots with a fallen log beside it
SM_BulbPlants fat alien bulb plants with spines and a flower on top
All stand on z = 0 with their origin at the middle of the foot; Ground places them on the ball and gives them a MeshCollider
(except the plants, which are walked through). Front = -Y (Unity +Z).
blender -b --factory-startup --python ArtSource/Blender/scripts/gc_up6_world.py -- [SM_Name ...]
"""
import sys, os
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from gc_up_kit import * # noqa: F401,F403
STONE, PALE, LILAC, WET = "M_Rock", "M_RockPale", "M_RockLilac", "M_RockWet"
MOSS, BARK, WOOD = "M_LeafDark", "M_Bark", "M_Wood"
def view(**kw):
return dict(elev=14, azim=-35, bg=(0.62, 0.72, 0.84), **kw)
def finish(P, name, ms=None, ang=35):
for o in P:
apply_xform(o)
o = ffin(P, name, ang=ang, wn=False, ms=ms or {STONE: 0.6, PALE: 0.6, LILAC: 0.6, WET: 0.6})
return o
def tilted(o, rx=0.0, ry=0.0, rz=0.0, t=(0, 0, 0)):
return xf(o, rx=rx, ry=ry, rz=rz, t=t)
# ======================================================================= stones
def boulders():
rng = random.Random(61)
P = []
for (x, y, r, sc) in ((0.0, 0.0, 1.25, (1.2, 1.0, 0.8)), (1.7, 0.6, 0.75, (1.1, 1.0, 0.85)), (-1.3, 0.9, 0.6, (1.0, 1.2, 0.8)), (0.6, -1.4, 0.45, (1.2, 0.9, 0.7)), (-0.7, -1.1, 0.3, (1, 1, 0.8))):
m = PALE if r > 0.7 else STONE
P.append(rock(r, (x, y, r * sc[2] * 0.55), seed=rng.randrange(999), sc=sc, m=m, sub=2, amp=0.13, name="stone"))
# moss on the north side and the top
if r > 0.5:
P.append(rock(r * 0.62, (x - r * 0.15, y + r * 0.45, r * sc[2] * 0.95), seed=rng.randrange(999), sc=(1.3, 1.0, 0.35), m=MOSS, sub=1, amp=0.18, name="moss"))
return P
def slab_stones():
rng = random.Random(62)
P = []
for k, (x, y, w, h, lean, yaw) in enumerate(((0.0, 0.0, 1.5, 2.2, 0.18, 0.1), (1.4, 0.5, 1.1, 1.5, -0.25, 0.4), (-1.3, 0.3, 1.0, 1.2, 0.32, -0.3), (0.5, -1.2, 0.9, 0.5, 1.2, 0.8))):
o = rock(0.5, (0, 0, 0), seed=rng.randrange(999), sc=(w, 0.32, h), m=LILAC if k % 2 == 0 else WET, sub=2, amp=0.08, name="slab")
P.append(tilted(o, rx=lean, rz=yaw, t=(x, y, h * 0.36)))
for k in range(5):
a = rng.uniform(0, 2 * PI)
P.append(rock(rng.uniform(0.12, 0.22), (math.cos(a) * rng.uniform(1.2, 2.0), math.sin(a) * rng.uniform(1.0, 1.8), 0.05), seed=k + 20, sc=(1.2, 1, 0.6), m=STONE, sub=1, amp=0.2, name="pebble"))
return P
def crystals():
rng = random.Random(63)
P = [rock(0.9, (0, 0, 0.25), seed=7, sc=(1.4, 1.2, 0.6), m=PALE, sub=2, amp=0.15, name="bed")]
spec = [(0.0, 0.0, 0.3, 2.6, 0.0, 0.0), (0.45, 0.2, 0.22, 1.8, 0.35, 0.5), (-0.4, 0.25, 0.2, 1.6, -0.4, 0.2), (0.15, -0.45, 0.17, 1.2, 0.15, -0.6),
(-0.25, -0.35, 0.14, 0.9, -0.5, -0.3), (0.65, -0.3, 0.12, 0.8, 0.6, -0.2), (-0.7, -0.05, 0.11, 0.7, -0.7, 0.1)]
for k, (x, y, r, L, tx, ty) in enumerate(spec):
m = "M_CrystalDeep" if k % 3 == 0 else "M_GlassTeal" if k % 3 == 1 else "M_PaintTeal"
shaft = cz("crystal", r, 0.0, L * 0.78, 0, 0, m, v=6)
tip = cz("tip", r, L * 0.78, L, 0, 0, m, v=6, r2=0.0)
for o in (shaft, tip):
P.append(tilted(o, rx=ty * 0.6, ry=tx * 0.6, rz=rng.uniform(0, 1), t=(x, y, 0.25)))
return P
# ======================================================================= plants
def shrooms():
rng = random.Random(64)
P = []
for k, (x, y, h, cr, lean) in enumerate(((0.0, 0.0, 2.6, 1.15, 0.05), (1.3, 0.5, 1.7, 0.8, -0.18), (-1.0, 0.7, 1.3, 0.62, 0.2), (0.6, -1.0, 0.8, 0.42, 0.12), (-0.5, -0.8, 0.5, 0.3, -0.2))):
cap = "M_Coral" if k % 2 == 0 else "M_PaintTeal"
parts = [cz("stem", h * 0.085, 0.0, h, 0, 0, "M_PaintCream", v=10, r2=h * 0.06),
cz("skirt", h * 0.14, h * 0.62, h * 0.66, 0, 0, "M_PaintCream", v=10, r2=h * 0.09),
sphere("cap", cr, (0, 0, h), seg=14, rings=7, m=cap, scale=(1, 1, 0.5)),
cz("gill", cr * 0.92, h - 0.02, h + 0.02, 0, 0, "M_PaintCream", v=14)]
for s in range(5 if cr > 0.5 else 3):
a = rng.uniform(0, 2 * PI)
rr = rng.uniform(0.3, 0.75) * cr
parts.append(sphere("spot", cr * 0.12, (math.cos(a) * rr, math.sin(a) * rr, h + cr * 0.5 * math.sqrt(max(0.05, 1 - (rr / cr) ** 2))), seg=6, rings=3, m="M_PaintWhite", scale=(1, 1, 0.45)))
for o in parts:
P.append(tilted(o, rx=lean, ry=lean * 0.5, t=(x, y, 0)))
return P
def stump():
rng = random.Random(65)
P = [cz("stump", 0.55, 0.0, 0.95, 0, 0, BARK, v=12, r2=0.48),
cz("top", 0.49, 0.95, 0.99, 0, 0, WOOD, v=12)]
# a jagged break: a few splinters standing up from the top
for k in range(6):
a = k / 6 * 2 * PI + rng.uniform(-0.2, 0.2)
P.append(cyl_between("splinter", (math.cos(a) * 0.38, math.sin(a) * 0.38, 0.95), (math.cos(a) * 0.3, math.sin(a) * 0.3, 1.1 + rng.uniform(0, 0.35)), 0.09, WOOD, v=4, r2=0.01))
for k in range(5):
a = k / 5 * 2 * PI + 0.3
P.append(cyl_between("root", (math.cos(a) * 0.35, math.sin(a) * 0.35, 0.35), (math.cos(a) * 1.05, math.sin(a) * 1.05, -0.05), 0.16, BARK, v=6, r2=0.05))
# the fallen top, lying beside it
P.append(cyl_between("log", (0.8, -0.7, 0.32), (3.2, 0.4, 0.3), 0.36, BARK, v=10, r2=0.3))
P.append(cyl_between("end", (0.78, -0.71, 0.32), (0.81, -0.69, 0.32), 0.35, WOOD, v=10))
P.append(cyl_between("branch", (2.2, -0.05, 0.45), (2.6, -0.9, 1.1), 0.08, BARK, v=5, r2=0.03))
P.append(rock(0.45, (2.0, 0.15, 0.62), seed=3, sc=(1.4, 1.0, 0.35), m=MOSS, sub=1, amp=0.2, name="moss"))
return P
def bulb_plants():
rng = random.Random(66)
P = []
for k, (x, y, s) in enumerate(((0.0, 0.0, 1.0), (0.9, 0.4, 0.7), (-0.75, 0.5, 0.6), (0.3, -0.8, 0.5))):
body = "M_Plant" if k % 2 == 0 else "M_Leaves"
P.append(sphere("bulb", 0.55 * s, (x, y, 0.5 * s), seg=12, rings=8, m=body, scale=(1, 1, 1.15)))
P.append(sphere("neck", 0.3 * s, (x, y, 1.1 * s), seg=10, rings=6, m=body, scale=(1, 1, 1.2)))
# ribs of spines
for j in range(8):
a = j / 8 * 2 * PI
for z in (0.35, 0.65):
p = Vector((x + math.cos(a) * 0.55 * s * 0.95, y + math.sin(a) * 0.55 * s * 0.95, z * s + 0.1 * s))
d = Vector((math.cos(a), math.sin(a), 0.4)).normalized()
P.append(cyl_between("spine", p, p + d * 0.16 * s, 0.02 * s, "M_PaintCream", v=3, r2=0.0))
# a flower on top
top = Vector((x, y, 1.45 * s))
for j in range(6):
a = j / 6 * 2 * PI + rng.uniform(0, 0.3)
P.append(sphere("petal", 0.14 * s, (top.x + math.cos(a) * 0.13 * s, top.y + math.sin(a) * 0.13 * s, top.z), seg=6, rings=4, m="M_PaintRed" if k % 2 else "M_PaintOrange", scale=(1.3, 0.7, 0.3)))
P.append(sphere("heart", 0.08 * s, (top.x, top.y, top.z + 0.03 * s), seg=6, rings=4, m="M_PaintYellow"))
return P
def builder(fn, name, ang=35):
def build():
finish(fn(), name, ang=ang)
return view(man=(2.5, -2.0, 0.0), views=[("_close", dict(elev=10, azim=-25, dist_mul=0.8))])
return build
BUILDERS = {"SM_Boulders": builder(boulders, "SM_Boulders"), "SM_SlabStones": builder(slab_stones, "SM_SlabStones", 30), "SM_Crystals": builder(crystals, "SM_Crystals", 20),
"SM_Shrooms": builder(shrooms, "SM_Shrooms"), "SM_Stump": builder(stump, "SM_Stump"), "SM_BulbPlants": builder(bulb_plants, "SM_BulbPlants")}
BUDGET = {"SM_Boulders": 2500, "SM_SlabStones": 1500, "SM_Crystals": 800, "SM_Shrooms": 3000, "SM_Stump": 1500, "SM_BulbPlants": 3000}
if __name__ == "__main__":
build_main(BUILDERS, BUDGET)

View File

@ -12,18 +12,24 @@ from gc_up_kit import * # noqa: F401,F403
# ======================================================================= deck tile # ======================================================================= deck tile
# the opening in each fence for its ladder, in the fence's own x
GAP0, GAP1 = 1.52, 2.48
def fence(alt): def fence(alt):
"""Cream post-and-rail along the -Y edge. Corner posts differ in size so two rails sharing a corner never z-fight, and the """Cream post-and-rail along the -Y edge. Corner posts differ in size so two rails sharing a corner never z-fight, and the
E/W rails sit a little higher to lap the N/S rails. The side panels stay clear for the ladders (x = +-1.5).""" E/W rails sit a little higher to lap the N/S rails. The rails stop either side of the ladder (x = +2.0, which is where
DeckManager hangs it on every edge): an opening between two short posts, so the ladder comes up through the fence, not into it."""
yc, yr, dz = -2.86, -2.955, 0.04 if alt else 0.0 yc, yr, dz = -2.86, -2.955, 0.04 if alt else 0.0
Q = [] Q = []
for x, w in ((-2.86, 0.15), (-0.95, 0.17), (0.95, 0.17), (2.86, 0.19)): for x, w in ((-2.86, 0.15), (-0.95, 0.17), (0.95, 0.17), (GAP0 - 0.06, 0.12), (GAP1 + 0.06, 0.12), (2.86, 0.19)):
pts = [(x - w / 2, 0.02), (x + w / 2, 0.02), (x + w / 2, 0.97), (x, 1.05), (x - w / 2, 0.97)] pts = [(x - w / 2, 0.02), (x + w / 2, 0.02), (x + w / 2, 0.97), (x, 1.05), (x - w / 2, 0.97)]
Q.append(grain(prism("post", pts, "XZ", yc - w / 2, yc + w / 2, CRM, bev=0.012), (0, 0, 1))) Q.append(grain(prism("post", pts, "XZ", yc - w / 2, yc + w / 2, CRM, bev=0.012), (0, 0, 1)))
Q.append(plain(x - w / 2 - 0.022, x + w / 2 + 0.022, yc - w / 2 - 0.022, yc + w / 2 + 0.022, 0.0, 0.06, IRON, "shoe")) Q.append(plain(x - w / 2 - 0.022, x + w / 2 + 0.022, yc - w / 2 - 0.022, yc + w / 2 + 0.022, 0.0, 0.06, IRON, "shoe"))
Q.append(plain(x - w / 2 - 0.006, x + w / 2 + 0.006, yc - w / 2 - 0.006, yc + w / 2 + 0.006, 0.8, 0.83, IRON, "band")) Q.append(plain(x - w / 2 - 0.006, x + w / 2 + 0.006, yc - w / 2 - 0.006, yc + w / 2 + 0.006, 0.8, 0.83, IRON, "band"))
Q.append(beam((-2.99, yr, 0.91 + dz), (2.99, yr, 0.91 + dz), 0.055, 0.13, CRM, bev=0.012, name="rail")) for x0, x1 in ((-2.99, GAP0), (GAP1, 2.99)):
Q.append(beam((-2.99, yr, 0.52 + dz), (2.99, yr, 0.52 + dz), 0.055, 0.12, CRM, bev=0.012, name="rail")) Q.append(beam((x0, yr, 0.91 + dz), (x1, yr, 0.91 + dz), 0.055, 0.13, CRM, bev=0.012, name="rail"))
Q.append(beam((x0, yr, 0.52 + dz), (x1, yr, 0.52 + dz), 0.055, 0.12, CRM, bev=0.012, name="rail"))
# X panel in the middle, a kick board under it # X panel in the middle, a kick board under it
for s in (-1, 1): for s in (-1, 1):
Q.append(beam((-0.83 * s, -2.905 - 0.01 * s, 0.14), (0.83 * s, -2.905 - 0.01 * s, 0.84), 0.04, 0.09, CRM, bev=0, name="brace")) Q.append(beam((-0.83 * s, -2.905 - 0.01 * s, 0.14), (0.83 * s, -2.905 - 0.01 * s, 0.84), 0.04, 0.09, CRM, bev=0, name="brace"))

BIN
ArtSource/Previews/SM_Boulders.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Previews/SM_BulbPlants.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Previews/SM_Crystals.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Previews/SM_DeckTile.png (Stored with Git LFS)

Binary file not shown.

BIN
ArtSource/Previews/SM_Shrooms.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Previews/SM_SlabStones.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
ArtSource/Previews/SM_Stump.png (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a09b7c8b722f99147bc024c95b8c753d
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 880f777deccc4844a8010e338e12b848
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 4300000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ea395dd493855cb4380e20e575fe9c7a
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 4300000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 04b15d5097599994ca40e5108c47d405
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 4300000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: a1df2dfff5eea284398aa54ea2e5a9d3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 4300000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: ce2b7e8f901495d4287d9c0124557bc6, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -25,16 +25,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -64,7 +63,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 628972642435df640ae1f7afe07f8883, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 800439d2feda5b14cba773f5b057145f, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 2f8b51c5ef986fe4286813dc960d2222, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -25,16 +25,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -64,7 +63,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 6ec544eeccd6d464d84821cc63bb7b29, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -12,16 +12,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -51,7 +50,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: dbe3e100380c76b4a8b5380713e07614, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

View File

@ -25,16 +25,15 @@ Material:
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP - _METALLICSPECGLOSSMAP
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 0
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 2000
stringTagMap: stringTagMap: {}
RenderType: Opaque disabledShaderPasses: []
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@ -64,7 +63,7 @@ Material:
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MainTex: - _MainTex:
m_Texture: {fileID: 2800000, guid: 7285a16fb80d7fe4bb8d228ee871afcf, type: 3} m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1} m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0} m_Offset: {x: 0, y: 0}
- _MetallicGlossMap: - _MetallicGlossMap:

BIN
Assets/Art/Models/SM_BeerCan.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_BeerCanCrushed.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Boulders.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: 981a214cd68487346b263b0a3ba67135
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art/Models/SM_BulbPlants.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: 5189fb7c48d7829408071170f2bc78fc
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art/Models/SM_Crystals.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: 408af3438629a0542aadcfc8c7ed8dcc
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art/Models/SM_DeckTile.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_HandCan.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_HandCigar.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Phone.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Shrooms.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: d97fcf9ef420b314f8fce5be3293138b
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art/Models/SM_SlabStones.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: 55c170e9b692bcc42a4a9f9f245e6340
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art/Models/SM_Stump.fbx (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,116 @@
fileFormatVersion: 2
guid: d9392e23ba9877144b935ad9398070ca
ModelImporter:
serializedVersion: 24600
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 1
materialSearch: 2
materialLocation: 1
searchTexturesGlobally: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
preBakeConvexCollisionMesh: 0
preBakeTriangleCollisionMesh: 0
importPhysicalCameras: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
importUVs: -1
importVertexColors: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
calculateBlendshapeNormalsDeltaFromImportedNormals: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Art/Models/SM_Tool_HandPump.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_HydroCannon.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_LawnMower.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_MegaSiphon.fbx (Stored with Git LFS)

Binary file not shown.

BIN
Assets/Art/Models/SM_Tool_SlurpGun.fbx (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +1,4 @@
using System.Linq;
using UnityEditor; using UnityEditor;
using UnityEngine; using UnityEngine;
@ -6,6 +7,9 @@ namespace GrassCutter.EditorTools
/// <summary>Import settings for Blender FBX, UI art, textures and audio.</summary> /// <summary>Import settings for Blender FBX, UI art, textures and audio.</summary>
public class ImportRules : AssetPostprocessor public class ImportRules : AssetPostprocessor
{ {
/// <summary>The meadow's scattered stones and plants: Ground gives most of them MeshColliders at runtime.</summary>
static readonly string[] Decor = { "SM_Boulders", "SM_SlabStones", "SM_Crystals", "SM_Shrooms", "SM_Stump", "SM_BulbPlants" };
void OnPreprocessModel() void OnPreprocessModel()
{ {
bool pack = assetPath.StartsWith("Assets/Art/Pack/"); bool pack = assetPath.StartsWith("Assets/Art/Pack/");
@ -21,7 +25,7 @@ namespace GrassCutter.EditorTools
mi.animationType = assetPath.Contains("SM_Crew") || assetPath.Contains("SM_Dir_") ? ModelImporterAnimationType.Generic : ModelImporterAnimationType.None; mi.animationType = assetPath.Contains("SM_Crew") || assetPath.Contains("SM_Dir_") ? ModelImporterAnimationType.Generic : ModelImporterAnimationType.None;
mi.addCollider = false; mi.addCollider = false;
// runtime MeshColliders (seabed rocks and wrecks) need CPU-readable meshes in the player // runtime MeshColliders (seabed rocks and wrecks) need CPU-readable meshes in the player
mi.isReadable = assetPath.Contains("SM_Spire") || assetPath.Contains("SM_Wreck") || (pack && !assetPath.Contains("SM_Veh_") && !assetPath.Contains("Hay_Bale")); mi.isReadable = assetPath.Contains("SM_Spire") || assetPath.Contains("SM_Wreck") || Decor.Any(assetPath.Contains) || (pack && !assetPath.Contains("SM_Veh_") && !assetPath.Contains("Hay_Bale"));
mi.meshCompression = ModelImporterMeshCompression.Off; mi.meshCompression = ModelImporterMeshCompression.Off;
mi.importNormals = ModelImporterNormals.Import; mi.importNormals = ModelImporterNormals.Import;
mi.importTangents = ModelImporterTangents.CalculateMikk; mi.importTangents = ModelImporterTangents.CalculateMikk;

View File

@ -256,6 +256,8 @@ namespace GrassCutter.EditorTools
case PieceId.Garage: case PieceId.Garage:
go.AddComponent<Garage>(); go.AddComponent<Garage>();
ShedParts(go, model, d.scale); ShedParts(go, model, d.scale);
// the roof as it is drawn, above the bays: the walls and posts are boxes, the door opens
Hull(go.transform, model, "Hull_Garage", 2.75f * d.scale, "SM_Bld_Garage_01_Door");
break; break;
case PieceId.UnloadBay: case PieceId.UnloadBay:
{ {
@ -329,6 +331,8 @@ namespace GrassCutter.EditorTools
{ {
plinth.transform.localPosition = new Vector3(0f, 1.6f, 0f); plinth.transform.localPosition = new Vector3(0f, 1.6f, 0f);
plinth.size = new Vector3(d.sizeX - 0.2f, 3.2f, d.sizeZ - 0.2f); plinth.size = new Vector3(d.sizeX - 0.2f, 3.2f, d.sizeZ - 0.2f);
// the tower and its cap above the plinth, as drawn; the sails turn, so they stay out of it
Hull(go.transform, model, "Hull_Windmill", 3.0f, "Spin");
} }
var machine = go.AddComponent<Machine>(); var machine = go.AddComponent<Machine>();
machine.lamp = Part<Renderer>(model, "Lamp"); machine.lamp = Part<Renderer>(model, "Lamp");
@ -380,6 +384,8 @@ namespace GrassCutter.EditorTools
// one slope from the eave at the front (+Z) to the ridge 1.5 m up at the back // one slope from the eave at the front (+Z) to the ridge 1.5 m up at the back
var slope = Box(go.transform, "Slope", new Vector3(0f, 0.75f, 0f), new Vector3(3.2f, 0.16f, 3.4f), null); var slope = Box(go.transform, "Slope", new Vector3(0f, 0.75f, 0f), new Vector3(3.2f, 0.16f, 3.4f), null);
slope.transform.localRotation = Quaternion.Euler(Mathf.Atan2(1.5f, 3f) * Mathf.Rad2Deg, 0f, 0f); slope.transform.localRotation = Quaternion.Euler(Mathf.Atan2(1.5f, 3f) * Mathf.Rad2Deg, 0f, 0f);
// and the roof as drawn, eaves and overhang and all: the slab alone let a body into the roof's underside
Hull(go.transform, model, "Hull_Roof");
break; break;
} }
case PieceId.Stairs: case PieceId.Stairs:
@ -516,6 +522,61 @@ namespace GrassCutter.EditorTools
// ───────────────────────── helpers ───────────────────────── // ───────────────────────── helpers ─────────────────────────
const string HullDir = "Assets/Art/Colliders";
/// <summary>
/// A collider in the model's own shape, for what boxes don't follow: a roof's slopes and overhang, a windmill's
/// tower above its plinth, a cabin's gable. Only triangles reaching above minY (in root space) are kept, and parts
/// named in skip (sails that turn, doors that open) are left out. The mesh is saved beside the prefabs.
/// </summary>
public static MeshCollider Hull(Transform root, Transform model, string asset, float minY = float.NegativeInfinity, params string[] skip) => Hull(root, model, asset, minY, float.PositiveInfinity, skip);
/// <summary>Only triangles lying wholly below maxY too: a chimney left out of a roof's convex hull.</summary>
public static MeshCollider Hull(Transform root, Transform model, string asset, float minY, float maxY, params string[] skip)
{
var verts = new List<Vector3>();
var tris = new List<int>();
var toRoot = root.worldToLocalMatrix;
foreach (var mf in model.GetComponentsInChildren<MeshFilter>(true))
{
if (!mf.sharedMesh) continue;
bool skipped = false;
for (var t = mf.transform; t && t != root; t = t.parent)
if (skip.Contains(t.name)) { skipped = true; break; }
if (skipped) continue;
var m = mf.sharedMesh;
var to = toRoot * mf.transform.localToWorldMatrix;
int b = verts.Count;
foreach (var v in m.vertices) verts.Add(to.MultiplyPoint3x4(v));
var tr = m.triangles;
for (int i = 0; i < tr.Length; i += 3)
{
int i0 = b + tr[i], i1 = b + tr[i + 1], i2 = b + tr[i + 2];
if (Mathf.Max(verts[i0].y, Mathf.Max(verts[i1].y, verts[i2].y)) < minY || Mathf.Max(verts[i0].y, Mathf.Max(verts[i1].y, verts[i2].y)) > maxY) continue;
tris.Add(i0); tris.Add(i1); tris.Add(i2);
}
}
if (tris.Count == 0) return null;
var mesh = new Mesh { name = asset };
if (verts.Count > 65000) mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;
mesh.SetVertices(verts);
mesh.SetTriangles(tris, 0);
mesh.RecalculateBounds();
if (!AssetDatabase.IsValidFolder(HullDir)) AssetDatabase.CreateFolder("Assets/Art", "Colliders");
var path = HullDir + "/" + asset + ".asset";
var old = AssetDatabase.LoadAssetAtPath<Mesh>(path);
if (old) { EditorUtility.CopySerialized(mesh, old); mesh = old; EditorUtility.SetDirty(old); }
else AssetDatabase.CreateAsset(mesh, path);
var go = new GameObject("Hull");
go.transform.SetParent(root, false);
var mc = go.AddComponent<MeshCollider>();
mc.sharedMesh = mesh;
// convex: a body pushed out of a bare triangle mesh can be pushed out the wrong side (through the roof); a roof,
// a gable and a tower above its plinth are all near enough convex for that
mc.convex = true;
return mc;
}
static PhysicsMaterial PhysMat(string name, float stat, float dyn, float bounce) static PhysicsMaterial PhysMat(string name, float stat, float dyn, float bounce)
{ {
var path = Prefabs + name + ".physicMaterial"; var path = Prefabs + name + ".physicMaterial";

View File

@ -167,6 +167,8 @@ namespace GrassCutter.EditorTools
ground.spires = new[] { Model("SM_Spire_A"), Model("SM_Spire_B"), Model("SM_Spire_C") }; ground.spires = new[] { Model("SM_Spire_A"), Model("SM_Spire_B"), Model("SM_Spire_C") };
ground.trees = new[] { Model("SM_Generic_Tree_01"), Model("SM_Generic_Tree_02"), Model("SM_Generic_Tree_03") }; ground.trees = new[] { Model("SM_Generic_Tree_01"), Model("SM_Generic_Tree_02"), Model("SM_Generic_Tree_03") };
ground.bush = Model("SM_Prop_Plant_Bush_03_L"); ground.bush = Model("SM_Prop_Plant_Bush_03_L");
ground.stones = new[] { Model("SM_Boulders"), Model("SM_SlabStones"), Model("SM_Crystals") };
ground.growths = new[] { Model("SM_Shrooms"), Model("SM_Stump"), Model("SM_BulbPlants") };
var deck = new GameObject("Deck").AddComponent<DeckManager>(); var deck = new GameObject("Deck").AddComponent<DeckManager>();
deck.tileModel = Model("SM_DeckTile"); deck.tileModel = Model("SM_DeckTile");
@ -193,7 +195,10 @@ namespace GrassCutter.EditorTools
var cabin = Place("SM_CrewCabin", new Vector3(-6f, 0f, 7f), 180f, rig); var cabin = Place("SM_CrewCabin", new Vector3(-6f, 0f, 7f), 180f, rig);
if (cabin) if (cabin)
{ {
SolidAt("CabinBox", new Vector3(0f, 1.6f, 0f), new Vector3(5.8f, 3.2f, 3.8f), cabin.transform); // the walls up to the eaves (2.6 m) as a box, the roof above them as drawn (the box used to stand 0.6 m
// proud of the eaves, and a body landed inside the roof)
SolidAt("CabinBox", new Vector3(0f, 1.3f, 0f), new Vector3(5.8f, 2.6f, 3.8f), cabin.transform);
Hull(cabin.transform, cabin.transform, "Hull_CrewCabin", 2.4f, 3.7f); // the chimney stays out of it
Blocker(cabin, Vector3.zero, new Vector2(5.8f, 3.8f)); Blocker(cabin, Vector3.zero, new Vector2(5.8f, 3.8f));
} }
@ -352,6 +357,8 @@ namespace GrassCutter.EditorTools
{ {
var go = Place(model, pos, yaw, rig); var go = Place(model, pos, yaw, rig);
if (!go) return; if (!go) return;
// where the floor is, in the world: pos is the rig's, the bounds are the world's
float floor = go.transform.position.y;
go.transform.localScale *= scale; go.transform.localScale *= scale;
// pack props are not all pivoted at their base (the hay bale sits at its middle): stand the lowest point on the floor // pack props are not all pivoted at their base (the hay bale sits at its middle): stand the lowest point on the floor
var rs = go.GetComponentsInChildren<Renderer>(); var rs = go.GetComponentsInChildren<Renderer>();
@ -359,7 +366,7 @@ namespace GrassCutter.EditorTools
{ {
var b = rs[0].bounds; var b = rs[0].bounds;
foreach (var r in rs) b.Encapsulate(r.bounds); foreach (var r in rs) b.Encapsulate(r.bounds);
float sink = pos.y - b.min.y; float sink = floor - b.min.y;
if (sink > 0.01f) go.transform.position += Vector3.up * sink; if (sink > 0.01f) go.transform.position += Vector3.up * sink;
} }
SolidAt("Solid", new Vector3(0f, height * 0.5f, 0f), new Vector3(size, height, size), go.transform); SolidAt("Solid", new Vector3(0f, height * 0.5f, 0f), new Vector3(size, height, size), go.transform);

View File

@ -87,6 +87,7 @@ Transform:
m_Children: m_Children:
- {fileID: 38572444345304277} - {fileID: 38572444345304277}
- {fileID: 1758526003396105489} - {fileID: 1758526003396105489}
- {fileID: 3170251978784381269}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &4317683233867669053 --- !u!114 &4317683233867669053
@ -145,6 +146,60 @@ MonoBehaviour:
ShowTopMostFoldoutHeaderGroup: 1 ShowTopMostFoldoutHeaderGroup: 1
lamp: {fileID: 6718356117126012063} lamp: {fileID: 6718356117126012063}
spin: {fileID: 8718353153667094295} spin: {fileID: 8718353153667094295}
--- !u!1 &9099323804247796267
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3170251978784381269}
- component: {fileID: 556488090267634518}
m_Layer: 13
m_Name: Hull
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3170251978784381269
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9099323804247796267}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 4917238142679922820}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &556488090267634518
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9099323804247796267}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 1
m_CookingOptions: 30
m_Mesh: {fileID: 4300000, guid: a1df2dfff5eea284398aa54ea2e5a9d3, type: 2}
--- !u!1001 &505441176530150206 --- !u!1001 &505441176530150206
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -1,58 +1,5 @@
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &409071045743709538
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5456911402751827933}
- component: {fileID: 3202088512133634808}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &5456911402751827933
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 409071045743709538}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &3202088512133634808
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 409071045743709538}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &574139940314412545 --- !u!1 &574139940314412545
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -159,6 +106,59 @@ BoxCollider:
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 8.3328, y: 0.3, z: 3.8280003} m_Size: {x: 8.3328, y: 0.3, z: 3.8280003}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &1965284004425929727
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2434438388972704976}
- component: {fileID: 2385825838288426818}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2434438388972704976
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1965284004425929727}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &2385825838288426818
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1965284004425929727}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &1971325548543075741 --- !u!1 &1971325548543075741
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -201,9 +201,10 @@ Transform:
- {fileID: 1108610811231582257} - {fileID: 1108610811231582257}
- {fileID: 9079409668988869866} - {fileID: 9079409668988869866}
- {fileID: 53782875249114572} - {fileID: 53782875249114572}
- {fileID: 7079769537369895109} - {fileID: 3550362103726451864}
- {fileID: 6857051631880245469} - {fileID: 2434438388972704976}
- {fileID: 5456911402751827933} - {fileID: 7546661658747855321}
- {fileID: 1311283872219557302}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &6163206358755032998 --- !u!114 &6163206358755032998
@ -280,6 +281,59 @@ MonoBehaviour:
backWall: -1.7280002 backWall: -1.7280002
doorLine: 1.9140002 doorLine: 1.9140002
eaves: 1.6500001 eaves: 1.6500001
--- !u!1 &2346421942890392580
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3550362103726451864}
- component: {fileID: 8213657979015482781}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3550362103726451864
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2346421942890392580}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &8213657979015482781
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2346421942890392580}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &2360479621212599500 --- !u!1 &2360479621212599500
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -439,59 +493,6 @@ BoxCollider:
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25} m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &4019366694137688275
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6857051631880245469}
- component: {fileID: 1059624524526610825}
m_Layer: 13
m_Name: Post
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6857051631880245469
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4019366694137688275}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &1059624524526610825
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4019366694137688275}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 3
m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &4756717939176039937 --- !u!1 &4756717939176039937
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -545,7 +546,7 @@ BoxCollider:
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 8.3328, y: 0.2615999, z: 0.25} m_Size: {x: 8.3328, y: 0.2615999, z: 0.25}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &7708810605813070895 --- !u!1 &8388024278122535338
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -553,8 +554,8 @@ GameObject:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
serializedVersion: 6 serializedVersion: 6
m_Component: m_Component:
- component: {fileID: 7079769537369895109} - component: {fileID: 7546661658747855321}
- component: {fileID: 9064368887260361192} - component: {fileID: 4943084778697038234}
m_Layer: 13 m_Layer: 13
m_Name: Post m_Name: Post
m_TagString: Untagged m_TagString: Untagged
@ -562,28 +563,28 @@ GameObject:
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!4 &7079769537369895109 --- !u!4 &7546661658747855321
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7708810605813070895} m_GameObject: {fileID: 8388024278122535338}
serializedVersion: 2 serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -3.9024, y: 0.85920006, z: 1.7890002} m_LocalPosition: {x: -1.3506, y: 0.85920006, z: 1.7890002}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 6080256564837846337} m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &9064368887260361192 --- !u!65 &4943084778697038234
BoxCollider: BoxCollider:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7708810605813070895} m_GameObject: {fileID: 8388024278122535338}
m_Material: {fileID: 0} m_Material: {fileID: 0}
m_IncludeLayers: m_IncludeLayers:
serializedVersion: 2 serializedVersion: 2
@ -596,8 +597,62 @@ BoxCollider:
m_ProvidesContacts: 0 m_ProvidesContacts: 0
m_Enabled: 1 m_Enabled: 1
serializedVersion: 3 serializedVersion: 3
m_Size: {x: 0.5279998, y: 1.7184001, z: 0.25} m_Size: {x: 0.8292, y: 1.7184001, z: 0.25}
m_Center: {x: 0, y: 0, z: 0} m_Center: {x: 0, y: 0, z: 0}
--- !u!1 &9090342261594741530
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1311283872219557302}
- component: {fileID: 4479638352344549388}
m_Layer: 13
m_Name: Hull
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1311283872219557302
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9090342261594741530}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6080256564837846337}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &4479638352344549388
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 9090342261594741530}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 1
m_CookingOptions: 30
m_Mesh: {fileID: 4300000, guid: ea395dd493855cb4380e20e575fe9c7a, type: 2}
--- !u!1001 &889884445882827272 --- !u!1001 &889884445882827272
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -1,5 +1,59 @@
%YAML 1.1 %YAML 1.1
%TAG !u! tag:unity3d.com,2011: %TAG !u! tag:unity3d.com,2011:
--- !u!1 &755798211701814365
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3289842134957773730}
- component: {fileID: 3335133847209210200}
m_Layer: 13
m_Name: Hull
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3289842134957773730
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 755798211701814365}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7914526740304174584}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!64 &3335133847209210200
MeshCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 755798211701814365}
m_Material: {fileID: 0}
m_IncludeLayers:
serializedVersion: 2
m_Bits: 0
m_ExcludeLayers:
serializedVersion: 2
m_Bits: 0
m_LayerOverridePriority: 0
m_IsTrigger: 0
m_ProvidesContacts: 0
m_Enabled: 1
serializedVersion: 5
m_Convex: 1
m_CookingOptions: 30
m_Mesh: {fileID: 4300000, guid: 04b15d5097599994ca40e5108c47d405, type: 2}
--- !u!1 &5770069060306824892 --- !u!1 &5770069060306824892
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -86,6 +140,7 @@ Transform:
m_Children: m_Children:
- {fileID: 5092411439797556592} - {fileID: 5092411439797556592}
- {fileID: 317439038586076511} - {fileID: 317439038586076511}
- {fileID: 3289842134957773730}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1041914169127860444 --- !u!114 &1041914169127860444

View File

@ -36,8 +36,8 @@ Transform:
- {fileID: 4846672235693918781} - {fileID: 4846672235693918781}
- {fileID: 5795024438146558760} - {fileID: 5795024438146558760}
- {fileID: 98854460548414821} - {fileID: 98854460548414821}
- {fileID: 5997051366575794423} - {fileID: 6785117535145784148}
- {fileID: 1515585914810031869} - {fileID: 3043806648717141134}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &9073465022817526665 --- !u!114 &9073465022817526665
@ -97,8 +97,8 @@ MonoBehaviour:
loco: {fileID: 5795024438146558760} loco: {fileID: 5795024438146558760}
wagons: wagons:
- {fileID: 98854460548414821} - {fileID: 98854460548414821}
- {fileID: 5997051366575794423} - {fileID: 6785117535145784148}
- {fileID: 1515585914810031869} - {fileID: 3043806648717141134}
Bins: Bins:
UpdateTraits: UpdateTraits:
MinSecondsBetweenUpdates: 0 MinSecondsBetweenUpdates: 0
@ -258,7 +258,7 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 492452458267548302} m_PrefabInstance: {fileID: 492452458267548302}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &1333848485600639254 --- !u!1001 &3294241807218279269
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 2 serializedVersion: 2
@ -355,10 +355,10 @@ PrefabInstance:
m_AddedGameObjects: [] m_AddedGameObjects: []
m_AddedComponents: [] m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &1515585914810031869 stripped --- !u!4 &3043806648717141134 stripped
Transform: Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 1333848485600639254} m_PrefabInstance: {fileID: 3294241807218279269}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &4430033088543879560 --- !u!1001 &4430033088543879560
PrefabInstance: PrefabInstance:
@ -426,108 +426,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 1e46a0e73c799e044adc05ec72b8e0cb, type: 3}
m_PrefabInstance: {fileID: 4430033088543879560} m_PrefabInstance: {fileID: 4430033088543879560}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &6103352816833138460
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &5997051366575794423 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 6103352816833138460}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6333936261267688643 --- !u!1001 &6333936261267688643
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -634,3 +532,105 @@ Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3} m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 902fa50fb1d87274c8688c3d1df26fa9, type: 3}
m_PrefabInstance: {fileID: 6333936261267688643} m_PrefabInstance: {fileID: 6333936261267688643}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1001 &6459055835294078143
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 1336629304857867531}
m_Modifications:
- target: {fileID: -9134265257723912743, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8824457299424515866, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.w
value: -0.000000030908616
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.x
value: -0.00000003090862
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.y
value: 0.7071067
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalRotation.z
value: -0.7071068
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -7228395619467320998, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -5007853481358164758, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: -1695386897620489773, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 612376956930680360, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Name
value: SM_TrainWagon
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 6294438985688766379, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8300547364818210869, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
- target: {fileID: 8624019241307441798, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
propertyPath: m_Layer
value: 13
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
--- !u!4 &6785117535145784148 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 2f62f48f443d0554db64b003366fd8d8, type: 3}
m_PrefabInstance: {fileID: 6459055835294078143}
m_PrefabAsset: {fileID: 0}

File diff suppressed because it is too large Load Diff

View File

@ -663,7 +663,9 @@ MonoBehaviour:
- {fileID: 919132149155446097, guid: 0968b63166181de4894183849f28be59, type: 3} - {fileID: 919132149155446097, guid: 0968b63166181de4894183849f28be59, type: 3}
- {fileID: 919132149155446097, guid: cf0837d8f3727ca4e925dd918ee037b1, type: 3} - {fileID: 919132149155446097, guid: cf0837d8f3727ca4e925dd918ee037b1, type: 3}
- {fileID: 919132149155446097, guid: eab8044a943c16448a60765f4975df3a, type: 3} - {fileID: 919132149155446097, guid: eab8044a943c16448a60765f4975df3a, type: 3}
- {fileID: 919132149155446097, guid: 981a214cd68487346b263b0a3ba67135, type: 3}
- {fileID: 919132149155446097, guid: 8a0ff76a50263d344b11d6dd175b2c9e, type: 3} - {fileID: 919132149155446097, guid: 8a0ff76a50263d344b11d6dd175b2c9e, type: 3}
- {fileID: 919132149155446097, guid: 5189fb7c48d7829408071170f2bc78fc, type: 3}
- {fileID: 919132149155446097, guid: e3cd03ea2a112df42bd25123e8496f22, type: 3} - {fileID: 919132149155446097, guid: e3cd03ea2a112df42bd25123e8496f22, type: 3}
- {fileID: 919132149155446097, guid: d39333630f23ea54b96db166c1c359e1, type: 3} - {fileID: 919132149155446097, guid: d39333630f23ea54b96db166c1c359e1, type: 3}
- {fileID: 919132149155446097, guid: 0ff303fda6240554698e22b21377e448, type: 3} - {fileID: 919132149155446097, guid: 0ff303fda6240554698e22b21377e448, type: 3}
@ -680,6 +682,7 @@ MonoBehaviour:
- {fileID: 919132149155446097, guid: 902d03997c641fd42bcfd3acb53a8e76, type: 3} - {fileID: 919132149155446097, guid: 902d03997c641fd42bcfd3acb53a8e76, type: 3}
- {fileID: 919132149155446097, guid: 3a2ae5fd81ec17b448e0f0fed47bf575, type: 3} - {fileID: 919132149155446097, guid: 3a2ae5fd81ec17b448e0f0fed47bf575, type: 3}
- {fileID: 919132149155446097, guid: fe2a29c7e1e48bd4e884fb772e4853f3, type: 3} - {fileID: 919132149155446097, guid: fe2a29c7e1e48bd4e884fb772e4853f3, type: 3}
- {fileID: 919132149155446097, guid: 408af3438629a0542aadcfc8c7ed8dcc, type: 3}
- {fileID: 919132149155446097, guid: 96bd2f7804ab8a64ebbb76ba9b2db972, type: 3} - {fileID: 919132149155446097, guid: 96bd2f7804ab8a64ebbb76ba9b2db972, type: 3}
- {fileID: 919132149155446097, guid: dd5b48f0937675d4d980a44706bfc655, type: 3} - {fileID: 919132149155446097, guid: dd5b48f0937675d4d980a44706bfc655, type: 3}
- {fileID: 919132149155446097, guid: 40d1ae96668f4b84da8daed267381521, type: 3} - {fileID: 919132149155446097, guid: 40d1ae96668f4b84da8daed267381521, type: 3}
@ -751,6 +754,8 @@ MonoBehaviour:
- {fileID: 919132149155446097, guid: e7336f8e7631a2542bc4766fcb933571, type: 3} - {fileID: 919132149155446097, guid: e7336f8e7631a2542bc4766fcb933571, type: 3}
- {fileID: 919132149155446097, guid: f849f81218cfe394da65d40c0cb5801e, type: 3} - {fileID: 919132149155446097, guid: f849f81218cfe394da65d40c0cb5801e, type: 3}
- {fileID: 919132149155446097, guid: 5dff163139e14b2419ed74647da885d4, type: 3} - {fileID: 919132149155446097, guid: 5dff163139e14b2419ed74647da885d4, type: 3}
- {fileID: 919132149155446097, guid: d97fcf9ef420b314f8fce5be3293138b, type: 3}
- {fileID: 919132149155446097, guid: 55c170e9b692bcc42a4a9f9f245e6340, type: 3}
- {fileID: 919132149155446097, guid: 2dacd5e1fbfbad14ab1b641bdcd7b3f5, type: 3} - {fileID: 919132149155446097, guid: 2dacd5e1fbfbad14ab1b641bdcd7b3f5, type: 3}
- {fileID: 919132149155446097, guid: c5044de845595a444b6981ea8f736325, type: 3} - {fileID: 919132149155446097, guid: c5044de845595a444b6981ea8f736325, type: 3}
- {fileID: 919132149155446097, guid: cfddca4f5069b1a4c93fd6eb552deab5, type: 3} - {fileID: 919132149155446097, guid: cfddca4f5069b1a4c93fd6eb552deab5, type: 3}
@ -760,6 +765,7 @@ MonoBehaviour:
- {fileID: 919132149155446097, guid: 73f91d86fa1fa1542859e03d9ea26799, type: 3} - {fileID: 919132149155446097, guid: 73f91d86fa1fa1542859e03d9ea26799, type: 3}
- {fileID: 919132149155446097, guid: cb13bd0320fe69c44b7b7b8a16258cd8, type: 3} - {fileID: 919132149155446097, guid: cb13bd0320fe69c44b7b7b8a16258cd8, type: 3}
- {fileID: 919132149155446097, guid: 3d2a49e8711f48b4ea8741cbbe317a44, type: 3} - {fileID: 919132149155446097, guid: 3d2a49e8711f48b4ea8741cbbe317a44, type: 3}
- {fileID: 919132149155446097, guid: d9392e23ba9877144b935ad9398070ca, type: 3}
- {fileID: 919132149155446097, guid: 15f80561b47dbc546ac6473f3d50d932, type: 3} - {fileID: 919132149155446097, guid: 15f80561b47dbc546ac6473f3d50d932, type: 3}
- {fileID: 919132149155446097, guid: b5008d1a738be7145b64fb3a368a7e3a, type: 3} - {fileID: 919132149155446097, guid: b5008d1a738be7145b64fb3a368a7e3a, type: 3}
- {fileID: 919132149155446097, guid: e4968365a1e167447bd41505107f659d, type: 3} - {fileID: 919132149155446097, guid: e4968365a1e167447bd41505107f659d, type: 3}

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 IST GEMÄHT
Earth has grass again. Thank you for mowing with us. Die Erde hat wieder Gras. Danke, dass ihr mit uns gemäht habt. Earth has grass again. Thank you for mowing with us. Die Erde hat wieder Gras. Danke, dass ihr mit uns gemäht habt.
The world is still yours: every machine, every belt, every robot. Die Welt gehört weiter euch: jede Maschine, jedes Band, jeder Roboter. The world is still yours: every machine, every belt, every robot. Die Welt gehört weiter euch: jede Maschine, jedes Band, jeder Roboter.
LEAVE A REVIEW REZENSION SCHREIBEN LEAVE A REVIEW REZENSION SCHREIBEN
Hold {0}: a pack of {1} for your belt ({1} kg) {0} halten: ein {1}er-Pack für den Gürtel ({1} kg)
A pack takes {0} kg of grass from your tools Ein Pack kostet {0} kg Gras aus deinen Werkzeugen
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} am Gürtel: Slot wählen und klicken, um eins zu nehmen
TAKE OFF BELT VOM GÜRTEL
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 ESTÁ SEGADA
Earth has grass again. Thank you for mowing with us. La Tierra vuelve a tener hierba. Gracias por segar con nosotros. Earth has grass again. Thank you for mowing with us. La Tierra vuelve a tener hierba. Gracias por segar con nosotros.
The world is still yours: every machine, every belt, every robot. El mundo sigue siendo tuyo: cada máquina, cada cinta, cada robot. The world is still yours: every machine, every belt, every robot. El mundo sigue siendo tuyo: cada máquina, cada cinta, cada robot.
LEAVE A REVIEW ESCRIBIR UNA RESEÑA LEAVE A REVIEW ESCRIBIR UNA RESEÑA
Hold {0}: a pack of {1} for your belt ({1} kg) Mantén {0}: un pack de {1} para el cinturón ({1} kg)
A pack takes {0} kg of grass from your tools Un pack cuesta {0} kg de hierba de tus herramientas
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} en el cinturón: elige la ranura y haz clic para tomar uno
TAKE OFF BELT QUITAR DEL CINTURÓN
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 EST TONDUE
Earth has grass again. Thank you for mowing with us. La Terre a de nouveau de l'herbe. Merci d'avoir tondu avec nous. Earth has grass again. Thank you for mowing with us. La Terre a de nouveau de l'herbe. Merci d'avoir tondu avec nous.
The world is still yours: every machine, every belt, every robot. Le monde est toujours à vous : chaque machine, chaque tapis, chaque robot. The world is still yours: every machine, every belt, every robot. Le monde est toujours à vous : chaque machine, chaque tapis, chaque robot.
LEAVE A REVIEW LAISSER UNE ÉVALUATION LEAVE A REVIEW LAISSER UNE ÉVALUATION
Hold {0}: a pack of {1} for your belt ({1} kg) Maintiens {0} : un pack de {1} pour ta ceinture ({1} kg)
A pack takes {0} kg of grass from your tools Un pack coûte {0} kg d'herbe de tes outils
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} à ta ceinture : choisis l'emplacement et clique pour en prendre un
TAKE OFF BELT RETIRER
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 È FALCIATO
Earth has grass again. Thank you for mowing with us. La Terra ha di nuovo l'erba. Grazie per aver falciato con noi. Earth has grass again. Thank you for mowing with us. La Terra ha di nuovo l'erba. Grazie per aver falciato con noi.
The world is still yours: every machine, every belt, every robot. Il mondo è ancora tuo: ogni macchina, ogni nastro, ogni robot. The world is still yours: every machine, every belt, every robot. Il mondo è ancora tuo: ogni macchina, ogni nastro, ogni robot.
LEAVE A REVIEW SCRIVI UNA RECENSIONE LEAVE A REVIEW SCRIVI UNA RECENSIONE
Hold {0}: a pack of {1} for your belt ({1} kg) Tieni premuto {0}: una confezione da {1} per la cintura ({1} kg)
A pack takes {0} kg of grass from your tools Una confezione costa {0} kg d'erba dai tuoi attrezzi
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} in cintura: scegli lo slot e clicca per prenderne uno
TAKE OFF BELT TOGLI DALLA CINTURA
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 刈り取り完了
Earth has grass again. Thank you for mowing with us. 地球に草が戻った。一緒に刈ってくれてありがとう。 Earth has grass again. Thank you for mowing with us. 地球に草が戻った。一緒に刈ってくれてありがとう。
The world is still yours: every machine, every belt, every robot. 世界はまだあなたのもの。すべての機械も、ベルトも、ロボットも。 The world is still yours: every machine, every belt, every robot. 世界はまだあなたのもの。すべての機械も、ベルトも、ロボットも。
LEAVE A REVIEW レビューを書く LEAVE A REVIEW レビューを書く
Hold {0}: a pack of {1} for your belt ({1} kg) {0}長押し:ベルト用の{1}個パック({1} kg)
A pack takes {0} kg of grass from your tools パックには道具の草が{0} kg必要
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} をベルトに:スロットを選んでクリックで1つ使う
TAKE OFF BELT ベルトから外す
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 베기 완료
Earth has grass again. Thank you for mowing with us. 지구에 다시 풀이 자라요. 함께 풀을 베어 줘서 고마워요. Earth has grass again. Thank you for mowing with us. 지구에 다시 풀이 자라요. 함께 풀을 베어 줘서 고마워요.
The world is still yours: every machine, every belt, every robot. 세상은 여전히 당신의 것이에요. 모든 기계, 모든 벨트, 모든 로봇까지. The world is still yours: every machine, every belt, every robot. 세상은 여전히 당신의 것이에요. 모든 기계, 모든 벨트, 모든 로봇까지.
LEAVE A REVIEW 평가 작성 LEAVE A REVIEW 평가 작성
Hold {0}: a pack of {1} for your belt ({1} kg) {0} 길게 누르기: 벨트용 {1}개 팩 ({1} kg)
A pack takes {0} kg of grass from your tools 팩은 도구의 풀 {0} kg이 필요합니다
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} 벨트에 장착: 슬롯을 고르고 클릭하면 하나 사용
TAKE OFF BELT 벨트에서 빼기
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 SKOSZONA
Earth has grass again. Thank you for mowing with us. Ziemia znów ma trawę. Dziękujemy, że kosiliście z nami. Earth has grass again. Thank you for mowing with us. Ziemia znów ma trawę. Dziękujemy, że kosiliście z nami.
The world is still yours: every machine, every belt, every robot. Świat wciąż należy do was: każda maszyna, każda taśma, każdy robot. The world is still yours: every machine, every belt, every robot. Świat wciąż należy do was: każda maszyna, każda taśma, każdy robot.
LEAVE A REVIEW NAPISZ RECENZJĘ LEAVE A REVIEW NAPISZ RECENZJĘ
Hold {0}: a pack of {1} for your belt ({1} kg) Przytrzymaj {0}: paczka {1} szt. na pas ({1} kg)
A pack takes {0} kg of grass from your tools Paczka kosztuje {0} kg trawy z twoich narzędzi
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} na pasie: wybierz slot i kliknij, by wziąć jedno
TAKE OFF BELT ZDEJMIJ Z PASA
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 ESTÁ CORTADO
Earth has grass again. Thank you for mowing with us. A Terra tem grama de novo. Obrigado por cortar com a gente. Earth has grass again. Thank you for mowing with us. A Terra tem grama de novo. Obrigado por cortar com a gente.
The world is still yours: every machine, every belt, every robot. O mundo continua seu: cada máquina, cada esteira, cada robô. The world is still yours: every machine, every belt, every robot. O mundo continua seu: cada máquina, cada esteira, cada robô.
LEAVE A REVIEW ESCREVER UMA ANÁLISE LEAVE A REVIEW ESCREVER UMA ANÁLISE
Hold {0}: a pack of {1} for your belt ({1} kg) Segure {0}: um pacote de {1} para o cinto ({1} kg)
A pack takes {0} kg of grass from your tools Um pacote custa {0} kg de grama das suas ferramentas
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} no cinto: escolha o espaço e clique para pegar um
TAKE OFF BELT TIRAR DO CINTO
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 ВЫКОШЕНА
Earth has grass again. Thank you for mowing with us. На Земле снова есть трава. Спасибо, что косили с нами. Earth has grass again. Thank you for mowing with us. На Земле снова есть трава. Спасибо, что косили с нами.
The world is still yours: every machine, every belt, every robot. Мир по-прежнему ваш: все машины, все ленты, все роботы. The world is still yours: every machine, every belt, every robot. Мир по-прежнему ваш: все машины, все ленты, все роботы.
LEAVE A REVIEW НАПИСАТЬ ОБЗОР LEAVE A REVIEW НАПИСАТЬ ОБЗОР
Hold {0}: a pack of {1} for your belt ({1} kg) Удерживай {0}: упаковка из {1} на пояс ({1} кг)
A pack takes {0} kg of grass from your tools Упаковка стоит {0} кг травы из твоих инструментов
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} на поясе: выбери слот и кликни, чтобы взять одну
TAKE OFF BELT СНЯТЬ С ПОЯСА
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 BİÇİLDİ
Earth has grass again. Thank you for mowing with us. Dünya'da yeniden çim var. Bizimle biçtiğin için teşekkürler. Earth has grass again. Thank you for mowing with us. Dünya'da yeniden çim var. Bizimle biçtiğin için teşekkürler.
The world is still yours: every machine, every belt, every robot. Dünya hâlâ senin: her makine, her bant, her robot. The world is still yours: every machine, every belt, every robot. Dünya hâlâ senin: her makine, her bant, her robot.
LEAVE A REVIEW İNCELEME YAZ LEAVE A REVIEW İNCELEME YAZ
Hold {0}: a pack of {1} for your belt ({1} kg) {0} basılı tut: kemer için {1}'lü paket ({1} kg)
A pack takes {0} kg of grass from your tools Bir paket aletlerindeki çimden {0} kg ister
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} kemerde: yuvayı seç ve birini almak için tıkla
TAKE OFF BELT KEMERDEN ÇIKAR
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

View File

@ -1045,3 +1045,9 @@ HERBARIA-7 IS MOWN HERBARIA-7 已割完
Earth has grass again. Thank you for mowing with us. 地球又有草了。感谢你和我们一起割草。 Earth has grass again. Thank you for mowing with us. 地球又有草了。感谢你和我们一起割草。
The world is still yours: every machine, every belt, every robot. 世界依然属于你:每台机器、每条传送带、每个机器人。 The world is still yours: every machine, every belt, every robot. 世界依然属于你:每台机器、每条传送带、每个机器人。
LEAVE A REVIEW 撰写评测 LEAVE A REVIEW 撰写评测
Hold {0}: a pack of {1} for your belt ({1} kg) 按住{0}:一包{1}个,挂上腰带({1} kg)
A pack takes {0} kg of grass from your tools 一包需要工具里的{0} kg青草
{0} ×{1} on your belt: pick the slot and click to have one {0} ×{1} 已挂上腰带:选中该格并点击使用一个
TAKE OFF BELT 从腰带取下
{0} / {1} {0} / {1}
HERBARIA-7 HERBARIA-7

File diff suppressed because it is too large Load Diff

View File

@ -27,7 +27,7 @@ namespace GrassCutter
var cam = CameraFx.Cam ? CameraFx.Cam : Camera.main; var cam = CameraFx.Cam ? CameraFx.Cam : Camera.main;
if (cam) cam.targetTexture = _scene; if (cam) cam.targetTexture = _scene;
_cam = cam; _cam = cam;
var doc = Object.FindAnyObjectByType<UIDocument>(); var doc = UIRoot.I ? UIRoot.I.GetComponent<UIDocument>() : Object.FindAnyObjectByType<UIDocument>();
if (doc && doc.panelSettings) if (doc && doc.panelSettings)
{ {
doc.panelSettings.targetTexture = _ui; doc.panelSettings.targetTexture = _ui;

View File

@ -9,6 +9,113 @@ namespace GrassCutter
/// -demofix: close looks at the base furniture people asked about: a deck ladder where it meets the railing, the hay /// -demofix: close looks at the base furniture people asked about: a deck ladder where it meets the railing, the hay
/// bale on the deck, the foot of the loading ramp and the back of the upgrade console. /// bale on the deck, the foot of the loading ramp and the back of the upgrade console.
/// </summary> /// </summary>
/// <summary>The second round: intakes beside the ladders, a body dropped on the roofs, the new meadow pieces, a pack on
/// the belt, acid rain on the deck and the meadow, and the headlamp at night on a tool in hand and on a vending machine.</summary>
IEnumerator FixMore()
{
// the north side from the meadow: ladders in their openings, intakes clear of them
Me.Teleport(new Vector3(-4f, 1.4f - 1.6f, 16f));
yield return new WaitForSeconds(0.6f);
Me.LookAt(new Vector3(-4f, 0.4f, 9.5f));
yield return new WaitForSeconds(0.6f);
yield return Shot("fix_intakes_n");
Me.Teleport(new Vector3(12f, 1.4f - 1.6f, -14f));
yield return new WaitForSeconds(0.6f);
Me.LookAt(new Vector3(4f, 0.4f, -9.5f));
yield return new WaitForSeconds(0.6f);
yield return Shot("fix_intakes_s");
// dropped from above the crew cabin's ridge: where does the body come to rest?
Me.SetFlying(false);
foreach (var probe in new[] { new Vector3(-6f, 9f, 7f), new Vector3(-6.8f, 9f, 6.2f) })
{
Me.Teleport(probe);
yield return new WaitForSeconds(3f);
Log($"roof probe from {probe}: rests at y {Me.transform.position.y:0.00}, grounded {Me.Grounded}");
foreach (var h in Physics.RaycastAll(probe + Vector3.up * 5f, Vector3.down, 20f, ~0, QueryTriggerInteraction.Ignore))
Log($" ray hits {h.collider.name} ({h.collider.GetType().Name}, layer {h.collider.gameObject.layer}, enabled {h.collider.enabled}) at y {h.point.y:0.00}");
}
Me.SetFlying(true);
// the new meadow pieces, the nearest of each
var ground = FindAnyObjectByType<Ground>();
if (ground)
{
foreach (var kind in new[] { "SM_Boulders", "SM_SlabStones", "SM_Crystals", "SM_Shrooms", "SM_Stump", "SM_BulbPlants" })
{
Transform best = null;
float bd = float.MaxValue;
foreach (var t in ground.GetComponentsInChildren<Transform>(true))
{
if (!t.name.StartsWith(kind) || t.parent == null || t.parent.name.StartsWith("SM_")) continue;
float d = (t.position - Me.transform.position).sqrMagnitude;
if (d < bd) { bd = d; best = t; }
}
if (!best) { Log($"no {kind} on the ball"); continue; }
var up = Planet.Up(best.position);
var side = Vector3.Cross(up, Vector3.forward).normalized;
Me.Teleport(best.position + side * 7f + up * 1.2f);
yield return new WaitForSeconds(1.2f);
Me.LookAt(best.position + up * 1f);
yield return new WaitForSeconds(0.8f);
yield return Shot("fix_decor_" + kind.Substring(3).ToLowerInvariant());
}
}
// a pack on the belt, in hand, and one had from it
Me.BeltSlots.Value = 4;
Cheats.Run("tool all");
yield return new WaitForSeconds(0.5f);
Me.Tools.Unequip(ToolId.Hammer);
Me.Tools.Unequip(ToolId.LongScythe);
Me.Tools.AddPack(TreatId.Beer, Treats.PackSize);
Me.Teleport(new Vector3(2f, 0.05f, 2f));
yield return new WaitForSeconds(0.5f);
Me.LookAt(new Vector3(2f, 1.2f, 12f));
Me.Tools.Select(ToolId.BeerPack);
yield return new WaitForSeconds(0.6f);
yield return Shot("fix_pack_belt");
Ctl.BotUsePressed = true;
yield return null;
Ctl.BotUsePressed = false;
yield return new WaitForSeconds(1.4f);
yield return Shot("fix_pack_drink");
Log($"pack: {Me.Tools.PackLeft(TreatId.Beer)} left, belt {string.Join(", ", Me.Tools.Belt)}");
yield return new WaitForSeconds(3f);
// acid rain on the deck rail, a machine and the meadow
Cheats.Run("weather acidrain 5");
yield return new WaitForSeconds(9f);
Me.Teleport(new Vector3(-2f, 0.05f, 6f));
yield return new WaitForSeconds(0.5f);
Me.LookAt(new Vector3(-2f, -0.4f, 11f));
yield return new WaitForSeconds(1.5f);
yield return Shot("fix_acid_edge");
Me.LookAt(new Vector3(0f, 0f, 3f));
yield return new WaitForSeconds(1.5f);
yield return Shot("fix_acid_deck");
Cheats.Run("weather clear");
// night: the headlamp on the tool in hand, and on a vending machine's own lights
float pinned = Sun.Pinned;
Sun.Pinned = Mathf.Repeat(pinned + 0.5f, 1f);
yield return new WaitForSeconds(4f);
Me.Tools.Select(ToolId.Scythe);
Me.LookAt(Me.transform.position + Me.transform.forward * 5f - Me.transform.up * 1.5f);
yield return new WaitForSeconds(1f);
yield return Shot("fix_night_tool");
var vm = VendingMachine.All.Count > 0 ? VendingMachine.All[0] : null;
if (vm)
{
Me.Teleport(vm.transform.position + vm.transform.forward * 1.6f + Vector3.up * 0.05f);
yield return new WaitForSeconds(0.6f);
Me.LookAt(vm.transform.position + Vector3.up * 1.1f);
yield return new WaitForSeconds(1f);
yield return Shot("fix_night_vending");
}
Sun.Pinned = pinned;
}
IEnumerator FixLook() IEnumerator FixLook()
{ {
BotCapture.From = null; BotCapture.From = null;
@ -20,10 +127,10 @@ namespace GrassCutter
Me.SetFlying(true); Me.SetFlying(true);
var spots = new (string name, Vector3 eye, Vector3 at)[] var spots = new (string name, Vector3 eye, Vector3 at)[]
{ {
("fix_ladder_a", new Vector3(-1.5f + 0.0f, 1.2f, 0f), new Vector3(-1.5f, 0.2f, 9f)), ("fix_ladder_a", new Vector3(-2f, 1.2f, 0f), new Vector3(-2f, 0.2f, 9f)),
("fix_ladder_b", new Vector3(-0.5f, 0.6f, 12f), new Vector3(-1.5f, 0.3f, 9f)), ("fix_ladder_b", new Vector3(-1f, 0.6f, 12f), new Vector3(-2f, 0.3f, 9f)),
("fix_ladder_c", new Vector3(-3.5f, 1.8f, 11.5f), new Vector3(-1.5f, 0f, 9f)), ("fix_ladder_c", new Vector3(-4f, 1.8f, 11.5f), new Vector3(-2f, 0f, 9f)),
("fix_ladder_d", new Vector3(-1.5f, -0.6f, 10.5f), new Vector3(-1.5f, 0.9f, 9f)), ("fix_ladder_d", new Vector3(-2f, -0.6f, 10.5f), new Vector3(-2f, 0.9f, 9f)),
("fix_hay", new Vector3(5.5f, 1.4f, -5.2f), new Vector3(7.8f, 0.2f, -7.6f)), ("fix_hay", new Vector3(5.5f, 1.4f, -5.2f), new Vector3(7.8f, 0.2f, -7.6f)),
("fix_hay_side", new Vector3(10.5f, 0.3f, -7.6f), new Vector3(7.8f, 0.1f, -7.6f)), ("fix_hay_side", new Vector3(10.5f, 0.3f, -7.6f), new Vector3(7.8f, 0.1f, -7.6f)),
("fix_yard", new Vector3(0f, 2.2f, -9f), new Vector3(0f, -1.2f, -20f)), ("fix_yard", new Vector3(0f, 2.2f, -9f), new Vector3(0f, -1.2f, -20f)),
@ -40,6 +147,7 @@ namespace GrassCutter
yield return new WaitForSeconds(0.6f); yield return new WaitForSeconds(0.6f);
yield return Shot(s.name); yield return Shot(s.name);
} }
yield return FixMore();
Log("demofix done"); Log("demofix done");
Application.Quit(); Application.Quit();
} }

View File

@ -2355,6 +2355,17 @@ namespace GrassCutter
Me.LookAt(at + new Vector3(-6f, 1.4f, 9f)); Me.LookAt(at + new Vector3(-6f, 1.4f, 9f));
yield return new WaitForSeconds(1f); yield return new WaitForSeconds(1f);
yield return Shot($"{i}_{tool}_rest"); yield return Shot($"{i}_{tool}_rest");
if (tool == ToolId.Hammer)
{
// which way the head faces, turned about the handle a quarter at a time
for (int q = 1; q < 4; q++)
{
ViewModel.Spin(tool, q * 90f);
yield return new WaitForSeconds(0.3f);
yield return Shot($"{i}_{tool}_spin{q * 90}");
}
ViewModel.Spin(tool, 0f);
}
Me.LookAt(ground); Me.LookAt(ground);
yield return new WaitForSeconds(0.6f); yield return new WaitForSeconds(0.6f);
yield return Shot($"{i}_{tool}_rest_down"); yield return Shot($"{i}_{tool}_rest_down");

View File

@ -303,6 +303,51 @@ namespace GrassCutter
Emit(i._drops, pos + side * s * 0.5f, (side * s * 1.8f + Planet.LocalUp * 2.4f) * (0.6f + speed01), Random.Range(0.05f, 0.09f), Clip(), 0.8f); Emit(i._drops, pos + side * s * 0.5f, (side * s * 1.8f + Planet.LocalUp * 2.4f) * (0.6f + speed01), Random.Range(0.05f, 0.09f), Clip(), 0.8f);
} }
public enum Surface { Ground, Grass, Wood, Metal }
/// <summary>
/// A raindrop landing, as the thing it lands on takes it. Soil throws up a brown fleck and a dull ring; grass shakes off
/// a spray of beads; wood beads up; metal rings out with a hard bright bounce. Acid adds its own: a fizz of steam on
/// metal, a thin brown smoke off wood, scorched flecks and a yellow puff off grass, a yellow froth on soil.
/// </summary>
public static void RainHit(Vector3 pos, Vector3 up, Surface on, Color tint, float acid)
{
var i = I;
if (!i || !i.Budget(1)) return;
var drop = new Color(tint.r, tint.g, tint.b, 0.55f);
switch (on)
{
case Surface.Ground:
Emit(i._ring, pos + up * 0.03f, Vector3.zero, Random.Range(0.12f, 0.22f), new Color(0.42f, 0.33f, 0.22f, 0.5f), 0.6f);
for (int k = 0; k < 2; k++)
Emit(i._drops, pos + up * 0.03f, up * Random.Range(1.2f, 2f) + Random.insideUnitSphere * 0.9f, Random.Range(0.025f, 0.04f), new Color(0.36f, 0.27f, 0.17f, 1f), 0.35f);
if (acid > 0.5f) Emit(i._puff, pos + up * 0.04f, up * 0.25f, Random.Range(0.1f, 0.18f), new Color(0.85f, 0.9f, 0.35f, 0.5f), 0.9f);
break;
case Surface.Grass:
for (int k = 0; k < 3; k++)
Emit(i._drops, pos + up * 0.25f + Random.insideUnitSphere * 0.1f, up * Random.Range(0.8f, 1.6f) + Random.insideUnitSphere * 1.2f, Random.Range(0.02f, 0.035f),
acid > 0.5f ? new Color(0.55f, 0.5f, 0.15f, 1f) : new Color(0.7f, 0.9f, 0.75f, 0.9f), 0.4f);
if (acid > 0.5f && Random.value < 0.4f) Emit(i._puff, pos + up * 0.3f, up * 0.35f, Random.Range(0.12f, 0.2f), new Color(0.8f, 0.85f, 0.4f, 0.4f), 1.1f);
break;
case Surface.Wood:
Emit(i._puff, pos + up * 0.02f, up * 0.3f, Random.Range(0.06f, 0.1f), drop, 0.4f);
for (int k = 0; k < 2; k++)
Emit(i._drops, pos + up * 0.02f, up * Random.Range(0.8f, 1.4f) + Random.insideUnitSphere * 0.6f, Random.Range(0.02f, 0.03f), drop, 0.3f);
if (acid > 0.5f && Random.value < 0.5f) Emit(i._puff, pos + up * 0.05f, up * Random.Range(0.4f, 0.7f), Random.Range(0.15f, 0.25f), new Color(0.35f, 0.3f, 0.2f, 0.45f), 1.4f);
break;
case Surface.Metal:
for (int k = 0; k < 4; k++)
Emit(i._drops, pos + up * 0.02f, up * Random.Range(2.2f, 3.4f) + Random.insideUnitSphere * 1.6f, Random.Range(0.018f, 0.028f), new Color(0.9f, 0.95f, 1f, 1f), 0.3f);
Emit(i._sparkle, pos + up * 0.03f, up * 0.4f, Random.Range(0.06f, 0.1f), new Color(1f, 1f, 1f, 0.8f), 0.25f);
if (acid > 0.5f)
{
Emit(i._steam, pos + up * 0.05f, up * Random.Range(0.6f, 1f), Random.Range(0.12f, 0.2f), new Color(0.88f, 1f, 0.6f, 0.45f), 0.5f);
if (Random.value < 0.25f) Emit(i._sparkle, pos + up * 0.05f, up * 1.2f + Random.insideUnitSphere, 0.05f, new Color(0.8f, 1f, 0.3f, 1f), 0.3f);
}
break;
}
}
/// <summary>Vaporizer / hot vent: big soft white billows.</summary> /// <summary>Vaporizer / hot vent: big soft white billows.</summary>
public static void Steam(Vector3 pos, float amount) public static void Steam(Vector3 pos, float amount)
{ {

View File

@ -18,7 +18,8 @@ namespace GrassCutter
void Eyes(bool on) void Eyes(bool on)
{ {
var fx = _cam.GetComponent<CameraFx>(); var fx = _cam.GetComponent<CameraFx>();
var doc = FindAnyObjectByType<UIDocument>(); // the HUD's own document: the phone has one of its own, drawn into its screen in the hand
var doc = UIRoot.I ? UIRoot.I.GetComponent<UIDocument>() : null;
if (on) if (on)
{ {
_cam.transform.SetParent(Me.head, false); _cam.transform.SetParent(Me.head, false);

View File

@ -99,6 +99,7 @@ namespace GrassCutter
public override void OnNetworkSpawn() public override void OnNetworkSpawn()
{ {
All.Add(this); All.Add(this);
IdleMotion.Attach(gameObject);
_run = GetComponentInChildren<BeltRun>(); _run = GetComponentInChildren<BeltRun>();
if (_run) _run.Lay(transform.position, To.Value); if (_run) _run.Lay(transform.position, To.Value);
// grass doesn't grow through a machine // grass doesn't grow through a machine

View File

@ -155,7 +155,7 @@ namespace GrassCutter
float lean = leg == 1 || leg == 5 ? Mathf.Sin(k * Mathf.PI) * 14f : 0f; float lean = leg == 1 || leg == 5 ? Mathf.Sin(k * Mathf.PI) * 14f : 0f;
float sway = trip.w >= 0f ? Mathf.Sin(Time.time * 2.1f + i) * 2.5f : 0f; float sway = trip.w >= 0f ? Mathf.Sin(Time.time * 2.1f + i) * 2.5f : 0f;
d.SetPositionAndRotation(at, face * Quaternion.Euler(lean, 0f, sway)); d.SetPositionAndRotation(at, face * Quaternion.Euler(lean, 0f, sway));
float spin = trip.w >= 0f ? 1900f : 0f; float spin = trip.w >= 0f ? 1900f : 70f;
foreach (var r in _rotors[i]) if (r) r.Rotate(up, spin * Time.deltaTime, Space.World); foreach (var r in _rotors[i]) if (r) r.Rotate(up, spin * Time.deltaTime, Space.World);
if (_hum[i]) _hum[i].volume = trip.w >= 0f ? 0.3f * Sfx.SfxVolume : 0f; if (_hum[i]) _hum[i].volume = trip.w >= 0f ? 0.3f * Sfx.SfxVolume : 0f;
} }

View File

@ -5,7 +5,9 @@ namespace GrassCutter
{ {
/// <summary>What a player can hold: six hand tools from nail scissors to the two-handed scythe, each with its own /// <summary>What a player can hold: six hand tools from nail scissors to the two-handed scythe, each with its own
/// grass container, and the hammer that opens the build menu.</summary> /// grass container, and the hammer that opens the build menu.</summary>
public enum ToolId : byte { NailScissors = 0, GardenShears = 1, Sickle = 2, Scythe = 3, LongScythe = 4, WideScythe = 5, Hammer = 6, LawnMower = 7, None = 255 } public enum ToolId : byte { NailScissors = 0, GardenShears = 1, Sickle = 2, Scythe = 3, LongScythe = 4, WideScythe = 5, Hammer = 6, LawnMower = 7,
/// <summary>Not tools: a pack of treats from a vending machine, taking up a belt slot until it is used up.</summary>
BeerPack = 100, CigarPack = 101, None = 255 }
/// <summary>Personal gear on the supply wall; shares the owned mask with the tools.</summary> /// <summary>Personal gear on the supply wall; shares the owned mask with the tools.</summary>
public enum GearId : byte { Jetpack = 8, Boots = 9, NightVision = 10 } public enum GearId : byte { Jetpack = 8, Boots = 9, NightVision = 10 }
@ -206,6 +208,10 @@ namespace GrassCutter
public static bool IsBlade(ToolId t) => t <= ToolId.WideScythe || t == ToolId.LawnMower; public static bool IsBlade(ToolId t) => t <= ToolId.WideScythe || t == ToolId.LawnMower;
/// <summary>Pushed along the ground instead of swung: cuts under its deck while you walk.</summary> /// <summary>Pushed along the ground instead of swung: cuts under its deck while you walk.</summary>
public static bool IsMower(ToolId t) => t == ToolId.LawnMower; public static bool IsMower(ToolId t) => t == ToolId.LawnMower;
public static bool IsPack(ToolId t) => t == ToolId.BeerPack || t == ToolId.CigarPack;
public static bool IsTool(ToolId t) => (int)t < ToolCount;
public static TreatId PackTreat(ToolId t) => t == ToolId.BeerPack ? TreatId.Beer : TreatId.Cigar;
public static ToolId PackOf(TreatId k) => k == TreatId.Beer ? ToolId.BeerPack : ToolId.CigarPack;
/// <summary>Scythes and shears have a basket perk each; the mower's bag only grows with the compactor.</summary> /// <summary>Scythes and shears have a basket perk each; the mower's bag only grows with the compactor.</summary>
public static bool HasBinPerk(ToolId t) => t <= ToolId.WideScythe; public static bool HasBinPerk(ToolId t) => t <= ToolId.WideScythe;
public static PerkId BinPerk(ToolId t) => (PerkId)((int)PerkId.BinScissors + (int)t); public static PerkId BinPerk(ToolId t) => (PerkId)((int)PerkId.BinScissors + (int)t);

View File

@ -18,6 +18,7 @@ namespace GrassCutter
go.transform.SetParent(transform, false); go.transform.SetParent(transform, false);
go.transform.localPosition = new Vector3(0f, 2.35f, 0f); go.transform.localPosition = new Vector3(0f, 2.35f, 0f);
_light = go.AddComponent<Light>(); _light = go.AddComponent<Light>();
_light.renderingLayerMask = -1;
_light.type = LightType.Point; _light.type = LightType.Point;
_light.color = Warm; _light.color = Warm;
_light.range = 9f; _light.range = 9f;

View File

@ -168,7 +168,8 @@ namespace GrassCutter
if (spin) if (spin)
{ {
if (_spinAxis < 0) _spinAxis = BaseRot.LocalAxisFor(spin, transform.forward); if (_spinAxis < 0) _spinAxis = BaseRot.LocalAxisFor(spin, transform.forward);
_spun += _pace * 300f * Time.deltaTime; float idle = Piece.piece == PieceId.Dryer ? 18f + WeatherFx.Wind * 140f : 10f;
_spun += (_pace * 300f + idle * (1f - Mathf.Clamp01(_pace * 4f))) * Time.deltaTime;
var axis = _spinAxis == 0 ? Vector3.right : _spinAxis == 1 ? Vector3.up : Vector3.forward; var axis = _spinAxis == 0 ? Vector3.right : _spinAxis == 1 ? Vector3.up : Vector3.forward;
spin.localRotation = BaseRot.Of(spin) * Quaternion.Euler(axis * _spun); spin.localRotation = BaseRot.Of(spin) * Quaternion.Euler(axis * _spun);
} }

View File

@ -57,9 +57,9 @@ namespace GrassCutter
void LateUpdate() void LateUpdate()
{ {
if (!reel || !Mowing.Value) return; if (!reel) return;
if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right); if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right);
_spun += ReelSpeed * Time.deltaTime; _spun += (Mowing.Value ? ReelSpeed : 14f) * Time.deltaTime;
var axis = _reelAxis == 0 ? Vector3.right : _reelAxis == 1 ? Vector3.up : Vector3.forward; var axis = _reelAxis == 0 ? Vector3.right : _reelAxis == 1 ? Vector3.up : Vector3.forward;
reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(axis * _spun); reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(axis * _spun);
} }

View File

@ -6,6 +6,8 @@ namespace GrassCutter
public class StationTerminal : MonoBehaviour, IInteractable public class StationTerminal : MonoBehaviour, IInteractable
{ {
public string Prompt => Loc.T("Travel terminal"); public string Prompt => Loc.T("Travel terminal");
void Start() => IdleMotion.Attach(gameObject);
public bool CanInteract => TeamState.Instance; public bool CanInteract => TeamState.Instance;
public void Interact() public void Interact()

View File

@ -12,6 +12,8 @@ namespace GrassCutter
public static class Treats public static class Treats
{ {
public const float CostKg = 1f; public const float CostKg = 1f;
/// <summary>A pack for the belt: this many at once (for as many kilos), and a slot holds at most PackMost.</summary>
public const int PackSize = 3, PackMost = 6;
public const float Seconds = 150f; public const float Seconds = 150f;
/// <summary>Grass Beer: the blade cuts this much wider.</summary> /// <summary>Grass Beer: the blade cuts this much wider.</summary>
public const float BeerMow = 1.4f; public const float BeerMow = 1.4f;

View File

@ -521,7 +521,7 @@ namespace GrassCutter
if (reel) if (reel)
{ {
if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right); if (_reelAxis < 0) _reelAxis = BaseRot.LocalAxisFor(reel, transform.right);
reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(Axis(_reelAxis) * (Time.time * (slurp ? 260f : HasDriver ? 90f : 0f))); reel.localRotation = BaseRot.Of(reel) * Quaternion.Euler(Axis(_reelAxis) * (Time.time * (slurp ? 260f : HasDriver ? 90f : 9f)));
} }
if (wheels != null && wheels.Length > 0) if (wheels != null && wheels.Length > 0)
{ {

View File

@ -30,7 +30,15 @@ namespace GrassCutter
static readonly Color BeerGlow = new Color(1f, 0.82f, 0.32f), CigarGlow = new Color(1f, 0.55f, 0.22f), Deny = new Color(1f, 0.15f, 0.1f); static readonly Color BeerGlow = new Color(1f, 0.82f, 0.32f), CigarGlow = new Color(1f, 0.55f, 0.22f), Deny = new Color(1f, 0.15f, 0.1f);
public string Prompt => Loc.F("{0}: 1 kg of grass from your tool. {1}, {2} for 2½ minutes", Treats.Name(kind), Treats.Boost(kind), Treats.Effect(kind)); public string Prompt
{
get
{
var line = Loc.F("{0}: 1 kg of grass from your tool. {1}, {2} for 2½ minutes", Treats.Name(kind), Treats.Boost(kind), Treats.Effect(kind));
var me = PlayerAgent.Local;
return me && me.Tools.PackRoom(kind) ? line + "\n" + Loc.F("Hold {0}: a pack of {1} for your belt ({1} kg)", Binds.Cap(Act.Interact), Treats.PackSize) : line;
}
}
public bool CanInteract => TeamState.Instance && !_busy && !TreatHand.Busy; public bool CanInteract => TeamState.Instance && !_busy && !TreatHand.Busy;
void OnEnable() => All.Add(this); void OnEnable() => All.Add(this);
@ -38,6 +46,8 @@ namespace GrassCutter
void Start() void Start()
{ {
// its own lit sign and display: the headlamp on top of them only burnt them out
DayNight.KeepOutOfLamp(gameObject);
_mpb = new MaterialPropertyBlock(); _mpb = new MaterialPropertyBlock();
_signBase = kind == TreatId.Beer ? new Color(0.25f, 1f, 0.5f) : CigarGlow; _signBase = kind == TreatId.Beer ? new Color(0.25f, 1f, 0.5f) : CigarGlow;
_displayBase = kind == TreatId.Beer ? new Color(0.45f, 1f, 0.55f) : new Color(1f, 0.72f, 0.4f); _displayBase = kind == TreatId.Beer ? new Color(0.45f, 1f, 0.55f) : new Color(1f, 0.72f, 0.4f);
@ -64,12 +74,40 @@ namespace GrassCutter
Hud.Toast(Loc.T("Bring 1 kg of grass in your tool: mow a little first"), Hud.ToastKind.Warn); Hud.Toast(Loc.T("Bring 1 kg of grass in your tool: mow a little first"), Hud.ToastKind.Warn);
return; return;
} }
StartCoroutine(Choose(me));
}
/// <summary>A tap has it now; held a moment, it's a pack for the belt (if there's room and grass enough).</summary>
IEnumerator Choose(PlayerAgent me)
{
_busy = true;
float held = 0f;
while (Ctl.InteractHeld && held < 0.4f) { held += Time.deltaTime; yield return null; }
_busy = false;
var from = me.Tools.Nozzle; var from = me.Tools.Nozzle;
if (held >= 0.4f && me.Tools.PackRoom(kind))
{
float cost = Treats.CostKg * Treats.PackSize;
if (me.Tools.Carried < cost - 0.001f)
{
_deny = 1f;
Sfx.PlayAt("error", transform.position, 0.7f);
Hud.Toast(Loc.F("A pack takes {0} kg of grass from your tools", Treats.PackSize), Hud.ToastKind.Warn);
yield break;
}
me.Tools.Spend(cost);
me.TreatRpc((byte)kind, transform.position, from);
_pack = true;
Play(true, from);
yield break;
}
me.Tools.Spend(Treats.CostKg); me.Tools.Spend(Treats.CostKg);
me.TreatRpc((byte)kind, transform.position, from); me.TreatRpc((byte)kind, transform.position, from);
Play(true, from); Play(true, from);
} }
bool _pack;
/// <summary>Run the machine's show: for the buyer it ends with the treat in their hand, for everyone else it's just the show.</summary> /// <summary>Run the machine's show: for the buyer it ends with the treat in their hand, for everyone else it's just the show.</summary>
public void Play(bool mine, Vector3 from) public void Play(bool mine, Vector3 from)
{ {
@ -168,7 +206,18 @@ namespace GrassCutter
yield return null; yield return null;
} }
Destroy(item.gameObject); Destroy(item.gameObject);
TreatHand.I?.Play(kind); if (_pack)
{
_pack = false;
var me = PlayerAgent.Local;
if (me && me.Tools.AddPack(kind, Treats.PackSize))
{
Sfx.Play("plastic_grab", 0.6f, 0.9f);
Hud.Toast(Loc.F("{0} ×{1} on your belt: pick the slot and click to have one", Treats.Name(kind), me.Tools.PackLeft(kind)), Hud.ToastKind.Info);
}
else TreatHand.I?.Play(kind);
}
else TreatHand.I?.Play(kind);
} }
else if (item) else if (item)
{ {

View File

@ -34,7 +34,8 @@ namespace GrassCutter
public void Move(Vector3 delta) public void Move(Vector3 delta)
{ {
var pos = transform.position; var pos = transform.position;
var up = Planet.Up(pos); // the body stands the way the crew member stands (the soil's up: see Planet.Level)
var up = transform.up;
float rise = Vector3.Dot(delta, up); float rise = Vector3.Dot(delta, up);
var flat = delta - up * rise; var flat = delta - up * rise;
bool was = isGrounded; bool was = isGrounded;

View File

@ -61,6 +61,7 @@ namespace GrassCutter
var bank = AssetBank.I; var bank = AssetBank.I;
var phone = Instantiate(bank.Model("SM_Phone"), _pivot); var phone = Instantiate(bank.Model("SM_Phone"), _pivot);
phone.name = "PhoneBody"; phone.name = "PhoneBody";
DayNight.KeepOutOfLamp(phone);
foreach (var r in phone.GetComponentsInChildren<Renderer>(true)) foreach (var r in phone.GetComponentsInChildren<Renderer>(true))
{ {
if (r.name == "Screen") { _screenR = r; r.sharedMaterial = bank.Mat("M_PhoneScreen"); } if (r.name == "Screen") { _screenR = r; r.sharedMaterial = bank.Mat("M_PhoneScreen"); }

View File

@ -341,9 +341,8 @@ namespace GrassCutter
/// </summary> /// </summary>
void KeepUpright(bool snap = false) void KeepUpright(bool snap = false)
{ {
var want = Planet.Up(transform.position); // the soil's own up (the deck stands on the flat round the base, so it is straight up there too)
var ts = Ts; var want = Planet.Level(transform.position);
if (ts && !Flying && !_vehicle && ts.OnDeck(transform.position)) want = Vector3.up;
_stand = snap || _stand == Vector3.zero ? want : Vector3.Slerp(_stand, want, 1f - Mathf.Exp(-6f * Time.deltaTime)).normalized; _stand = snap || _stand == Vector3.zero ? want : Vector3.Slerp(_stand, want, 1f - Mathf.Exp(-6f * Time.deltaTime)).normalized;
_frame = Quaternion.FromToRotation(_frame * Vector3.up, _stand) * _frame; _frame = Quaternion.FromToRotation(_frame * Vector3.up, _stand) * _frame;
} }
@ -543,7 +542,9 @@ namespace GrassCutter
_climbFrom = transform.position; _climbFrom = transform.position;
_climbTo = hit.point + up * 0.05f + fwd * 0.45f; _climbTo = hit.point + up * 0.05f + fwd * 0.45f;
_climbT = 0f; _climbT = 0f;
_climbOver = true; // over the railing if there is one in the way; up through the opening at a ladder there isn't
var waist = up * 0.5f;
_climbOver = Physics.Linecast(transform.position + Vector3.Project(_climbTo - transform.position, up) + waist, _climbTo + waist, 1 << Physics.IgnoreRaycastLayer, QueryTriggerInteraction.Ignore);
Body.enabled = false; Body.enabled = false;
Sfx.Play("splash_small", 0.5f, 1.3f); Sfx.Play("splash_small", 0.5f, 1.3f);
Sfx.Play("jump", 0.5f, 0.85f); Sfx.Play("jump", 0.5f, 0.85f);

View File

@ -58,7 +58,70 @@ namespace GrassCutter
void Awake() { _p = GetComponent<PlayerAgent>(); } void Awake() { _p = GetComponent<PlayerAgent>(); }
public bool Owns(ToolId t) => _p.Owns(t); public bool Owns(ToolId t) => GameDefs.IsTool(t) && _p.Owns(t);
// ───────────────────────── treat packs ─────────────────────────
readonly int[] _packs = new int[2];
/// <summary>How many are left in the pack of this treat on the belt (0: none there).</summary>
public int PackLeft(TreatId k) => _packs[(int)k];
/// <summary>Room for a pack of this treat: a free slot, or the one already on the belt not yet full.</summary>
public bool PackRoom(TreatId k) => _belt.Contains(GameDefs.PackOf(k)) ? _packs[(int)k] + Treats.PackSize <= Treats.PackMost : _belt.Count < _p.BeltSlots.Value;
/// <summary>A pack from a vending machine goes on the belt (onto the one there, or into a free slot).</summary>
public bool AddPack(TreatId k, int n)
{
if (!PackRoom(k)) return false;
var id = GameDefs.PackOf(k);
if (!_belt.Contains(id)) _belt.Add(id);
_packs[(int)k] = Mathf.Min(Treats.PackMost, _packs[(int)k] + n);
_changed = true;
BeltChanged?.Invoke();
return true;
}
/// <summary>The belt's contents changed without the hand changing (a pack topped up or used).</summary>
public event Action BeltChanged;
/// <summary>One from the pack in hand: the can or the cigar comes up, the boost starts, the pack runs down.</summary>
void UsePack()
{
var k = GameDefs.PackTreat(Current);
if (_packs[(int)k] <= 0 || TreatHand.Busy || !TreatHand.I) return;
_packs[(int)k]--;
_changed = true;
// far from any machine: the others see the boost, not a machine's show
_p.TreatRpc((byte)k, new Vector3(0f, -100000f, 0f), Nozzle);
TreatHand.I.Play(k);
if (_packs[(int)k] <= 0)
{
int i = _belt.IndexOf(Current);
_belt.Remove(Current);
var next = ToolId.None;
foreach (var t in _belt) if (GameDefs.IsTool(t)) { next = t; break; }
if (next == ToolId.None && _belt.Count > 0) next = _belt[Mathf.Clamp(i, 0, _belt.Count - 1)];
Current = ToolId.None;
Select(next);
}
BeltChanged?.Invoke();
}
/// <summary>Take a tool off the belt: it stays yours (the supply wall has it), the slot is free for something else.</summary>
public void Unequip(ToolId t)
{
if (!_belt.Remove(t)) return;
_changed = true;
if (Current == t)
{
var next = ToolId.None;
foreach (var b in _belt) if (GameDefs.IsTool(b)) { next = b; break; }
if (next == ToolId.None && _belt.Count > 0) next = _belt[0];
Select(next);
}
BeltChanged?.Invoke();
}
public float Bin(ToolId t) => GameDefs.IsBlade(t) ? _bins[(int)t] : 0f; public float Bin(ToolId t) => GameDefs.IsBlade(t) ? _bins[(int)t] : 0f;
public float CurrentCap => Ts && GameDefs.IsBlade(Current) ? Ts.ToolCap(Current) : 0f; public float CurrentCap => Ts && GameDefs.IsBlade(Current) ? Ts.ToolCap(Current) : 0f;
@ -100,12 +163,13 @@ namespace GrassCutter
public void Select(ToolId t) public void Select(ToolId t)
{ {
if (t == Current || (t != ToolId.None && !Owns(t))) return; if (t == Current || (t != ToolId.None && !Owns(t) && !(GameDefs.IsPack(t) && _belt.Contains(t)))) return;
Current = t; Current = t;
_changed = true; _changed = true;
if (_p.IsOwner) if (_p.IsOwner)
{ {
_p.ToolNet.Value = (byte)t; // a pack in hand shows as empty hands to the others: the can or cigar comes up when it is used
_p.ToolNet.Value = (byte)(GameDefs.IsPack(t) ? ToolId.None : t);
_p.Tank.Value = Bin(t); _p.Tank.Value = Bin(t);
} }
StopCut(); StopCut();
@ -138,6 +202,7 @@ namespace GrassCutter
HandleSwitching(); HandleSwitching();
if (_changed && Time.time >= _reportAt) ReportNow(); if (_changed && Time.time >= _reportAt) ReportNow();
if (GameDefs.IsPack(Current) && Ctl.UsePressed && !_p.Driving.Value && !_p.Grab.Holding && !Ctl.UIOpen) UsePack();
bool blocked = _p.Driving.Value || _p.Grab.Holding || Ctl.UIOpen || !GameDefs.IsBlade(Current) || TreatHand.Busy; bool blocked = _p.Driving.Value || _p.Grab.Holding || Ctl.UIOpen || !GameDefs.IsBlade(Current) || TreatHand.Busy;
if (blocked) { BladeOn = false; StopCut(); return; } if (blocked) { BladeOn = false; StopCut(); return; }
@ -161,7 +226,9 @@ namespace GrassCutter
_changed = false; _changed = false;
_reportAt = Time.time + 5f; _reportAt = Time.time + 5f;
var belt = new int[_belt.Count]; var belt = new int[_belt.Count];
for (int i = 0; i < belt.Length; i++) belt[i] = (int)_belt[i]; // a pack is kept as 1000 + 100 x its treat + how many are left in it
for (int i = 0; i < belt.Length; i++)
belt[i] = GameDefs.IsPack(_belt[i]) ? 1000 + 100 * (int)GameDefs.PackTreat(_belt[i]) + _packs[(int)GameDefs.PackTreat(_belt[i])] : (int)_belt[i];
_p.ReportToolsRpc(_bins, belt, (int)Current); _p.ReportToolsRpc(_bins, belt, (int)Current);
} }
@ -176,8 +243,18 @@ namespace GrassCutter
_ownedSeen = _p.Owned.Value; _ownedSeen = _p.Owned.Value;
for (int i = 0; i < bins.Length && i < _bins.Length; i++) _bins[i] = bins[i]; for (int i = 0; i < bins.Length && i < _bins.Length; i++) _bins[i] = bins[i];
_belt.Clear(); _belt.Clear();
_packs[0] = _packs[1] = 0;
foreach (int t in belt) foreach (int t in belt)
if (_belt.Count < _p.BeltSlots.Value && Owns((ToolId)t) && !_belt.Contains((ToolId)t)) _belt.Add((ToolId)t); {
if (_belt.Count >= _p.BeltSlots.Value) break;
if (t >= 1000)
{
int k = Mathf.Clamp((t - 1000) / 100, 0, 1), n = Mathf.Clamp((t - 1000) % 100, 0, Treats.PackMost);
var id = GameDefs.PackOf((TreatId)k);
if (n > 0 && !_belt.Contains(id)) { _belt.Add(id); _packs[k] = n; }
}
else if (Owns((ToolId)t) && !_belt.Contains((ToolId)t)) _belt.Add((ToolId)t);
}
var hand = _belt.Contains((ToolId)current) ? (ToolId)current : _belt.Count > 0 ? _belt[0] : ToolId.None; var hand = _belt.Contains((ToolId)current) ? (ToolId)current : _belt.Count > 0 ? _belt[0] : ToolId.None;
Current = ToolId.None; Current = ToolId.None;
Select(hand); Select(hand);

View File

@ -57,6 +57,7 @@ namespace GrassCutter
if (src) if (src)
{ {
go = Instantiate(src, r.pivot); go = Instantiate(src, r.pivot);
DayNight.KeepOutOfLamp(go);
go.transform.localPosition = Vector3.zero; go.transform.localPosition = Vector3.zero;
go.transform.localRotation = Flip * src.transform.localRotation; go.transform.localRotation = Flip * src.transform.localRotation;
} }

View File

@ -22,12 +22,28 @@ namespace GrassCutter
// a sweep turns the whole rig around this point, by this much either way of the middle of the stroke // a sweep turns the whole rig around this point, by this much either way of the middle of the stroke
public Vector3 pivot; public Vector3 pivot;
public float arc, middle; public float arc, middle;
// the model turned about its own handle, so the business end faces where it should
public float spin;
} }
class Rig class Rig
{ {
public Hold hold; public Hold hold;
public Transform root, bladeA, bladeB; public Transform root, bladeA, bladeB;
public Transform mesh;
public Quaternion meshRot;
public Vector3 handle;
}
/// <summary>Every tool sits this much lower and further right than its pose says: out of the middle of the view.</summary>
static readonly Vector3 Shift = new Vector3(0.045f, -0.05f, 0f);
/// <summary>Turns a tool about its handle (the longest side of its mesh), on top of its pose's own spin.</summary>
public static void Spin(ToolId id, float degrees)
{
var vm = FindAnyObjectByType<ViewModel>();
if (vm && vm._rigs.TryGetValue(id, out var r) && r.mesh)
r.mesh.localRotation = r.meshRot * Quaternion.AngleAxis(r.hold.spin + degrees, r.handle);
} }
static readonly Hold[] Holds = static readonly Hold[] Holds =
@ -57,8 +73,8 @@ namespace GrassCutter
pos = new Vector3(0.32f, -0.1f, 0.36f), euler = new Vector3(9f, -22f, 0f), pos = new Vector3(0.32f, -0.1f, 0.36f), euler = new Vector3(9f, -22f, 0f),
usePos = new Vector3(0.32f, -0.11f, 0.36f), useEuler = new Vector3(11f, -22f, 0f), usePos = new Vector3(0.32f, -0.11f, 0.36f), useEuler = new Vector3(11f, -22f, 0f),
pivot = new Vector3(0.1f, -0.6f, -0.1f), arc = 28f, middle = 5f }, pivot = new Vector3(0.1f, -0.6f, -0.1f), arc = 28f, middle = 5f },
// the hammer stands up beside the view, face to the left, ready to come down on what's being built // the hammer stands up beside the view, face forward, ready to come down on what's being built
new Hold { id = ToolId.Hammer, motion = Motion.Strike, scale = 0.42f, new Hold { id = ToolId.Hammer, motion = Motion.Strike, scale = 0.42f, spin = 270f,
pos = new Vector3(0.27f, -0.2f, 0.42f), euler = new Vector3(-68f, -10f, -8f), pos = new Vector3(0.27f, -0.2f, 0.42f), euler = new Vector3(-68f, -10f, -8f),
usePos = new Vector3(0.27f, -0.2f, 0.42f), useEuler = new Vector3(-68f, -10f, -8f) }, usePos = new Vector3(0.27f, -0.2f, 0.42f), useEuler = new Vector3(-68f, -10f, -8f) },
}; };
@ -102,7 +118,17 @@ namespace GrassCutter
if (t.name == "BladeA") r.bladeA = t; if (t.name == "BladeA") r.bladeA = t;
else if (t.name == "BladeB") r.bladeB = t; else if (t.name == "BladeB") r.bladeB = t;
} }
var mf = model ? model.GetComponentInChildren<MeshFilter>() : null;
if (mf && mf.sharedMesh)
{
var size = mf.sharedMesh.bounds.size;
r.mesh = mf.transform;
r.meshRot = mf.transform.localRotation;
r.handle = size.x >= size.y && size.x >= size.z ? Vector3.right : size.y >= size.z ? Vector3.up : Vector3.forward;
if (h.spin != 0f) r.mesh.localRotation = r.meshRot * Quaternion.AngleAxis(h.spin, r.handle);
}
SetLayer(r.root, Layers.ViewModel); SetLayer(r.root, Layers.ViewModel);
DayNight.KeepOutOfLamp(r.root.gameObject);
r.root.gameObject.SetActive(false); r.root.gameObject.SetActive(false);
} }
} }
@ -266,8 +292,8 @@ namespace GrassCutter
: _strike < 0.12f ? Mathf.Lerp(-26f, 50f, Mathf.Pow((_strike - 0.06f) / 0.06f, 2f)) : _strike < 0.12f ? Mathf.Lerp(-26f, 50f, Mathf.Pow((_strike - 0.06f) / 0.06f, 2f))
: _strike < 0.2f ? 50f + Mathf.Sin((_strike - 0.12f) / 0.08f * Mathf.PI * 3f) * 4f * (1f - (_strike - 0.12f) / 0.08f) : _strike < 0.2f ? 50f + Mathf.Sin((_strike - 0.12f) / 0.08f * Mathf.PI * 3f) * 4f * (1f - (_strike - 0.12f) / 0.08f)
: Mathf.Lerp(50f, 0f, Mathf.SmoothStep(0f, 1f, (_strike - 0.2f) / 0.36f)); : Mathf.Lerp(50f, 0f, Mathf.SmoothStep(0f, 1f, (_strike - 0.2f) / 0.36f));
rot = Quaternion.AngleAxis(a, Vector3.forward) * rot; rot = Quaternion.AngleAxis(a, Vector3.right) * rot;
pos += new Vector3(-0.05f, -0.035f, 0.06f) * (Mathf.Max(0f, a) / 50f) + new Vector3(0.015f, 0.03f, -0.02f) * (Mathf.Max(0f, -a) / 26f); pos += new Vector3(0f, -0.04f, 0.06f) * (Mathf.Max(0f, a) / 50f) + new Vector3(0f, 0.03f, -0.03f) * (Mathf.Max(0f, -a) / 26f);
} }
// a new tool comes up from below with a turn of the wrist, and settles with a little overshoot // a new tool comes up from below with a turn of the wrist, and settles with a little overshoot
@ -275,7 +301,7 @@ namespace GrassCutter
float away = Mathf.Max(low, _hide); float away = Mathf.Max(low, _hide);
pos += new Vector3(0.04f * low, -0.35f * away, 0f); pos += new Vector3(0.04f * low, -0.35f * away, 0f);
rot = Quaternion.Euler(25f * away, -10f * low, -35f * low) * rot; rot = Quaternion.Euler(25f * away, -10f * low, -35f * low) * rot;
rig.root.localPosition = pos; rig.root.localPosition = pos + Shift;
rig.root.localRotation = rot; rig.root.localRotation = rot;
rig.root.gameObject.SetActive(_hide < 0.99f); rig.root.gameObject.SetActive(_hide < 0.99f);
} }

View File

@ -415,7 +415,7 @@ namespace GrassCutter
var belt = _local.Tools.Belt; var belt = _local.Tools.Belt;
bool rebuilt = false; bool rebuilt = false;
int slots = _local.BeltSlots.Value; int slots = _local.BeltSlots.Value;
foreach (var t in belt) key.Append((int)t).Append(','); foreach (var t in belt) key.Append((int)t).Append(GameDefs.IsPack(t) ? "x" + _local.Tools.PackLeft(GameDefs.PackTreat(t)) : "").Append(',');
key.Append('/').Append(slots); key.Append('/').Append(slots);
if (key.ToString() != _beltKey) if (key.ToString() != _beltKey)
{ {
@ -428,9 +428,19 @@ namespace GrassCutter
var slot = UIK.El("slot", _hotbar); var slot = UIK.El("slot", _hotbar);
UIK.Text((n + 1).ToString(), "slot-key t-outline", slot); UIK.Text((n + 1).ToString(), "slot-key t-outline", slot);
if (n >= belt.Count) { slot.AddToClassList("slot-empty"); continue; } if (n >= belt.Count) { slot.AddToClassList("slot-empty"); continue; }
var d = GameDefs.Tool(belt[n]); if (GameDefs.IsPack(belt[n]))
UIK.Img(AssetBank.I.Tex(d.icon), "slot-icon", slot); {
slot.tooltip = d.name; var k = GameDefs.PackTreat(belt[n]);
UIK.Img(AssetBank.I.Tex(Treats.Icon(k)), "slot-icon", slot);
UIK.Text("×" + _local.Tools.PackLeft(k), "slot-count t-outline", slot);
slot.tooltip = Treats.Name(k);
}
else
{
var d = GameDefs.Tool(belt[n]);
UIK.Img(AssetBank.I.Tex(d.icon), "slot-icon", slot);
slot.tooltip = d.name;
}
_slots[belt[n]] = slot; _slots[belt[n]] = slot;
if (animate) UIK.PopIn(slot); if (animate) UIK.PopIn(slot);
} }
@ -555,7 +565,7 @@ namespace GrassCutter
float kg = v ? v.Load : tools.Bin(tools.Current); float kg = v ? v.Load : tools.Bin(tools.Current);
float cap = v ? v.Capacity : tools.CurrentCap; float cap = v ? v.Capacity : tools.CurrentCap;
bool bin = cap > 0f; bool bin = cap > 0f;
_toolName.text = v ? v.Def.name : GameDefs.Tool(tools.Current).name; _toolName.text = v ? v.Def.name : GameDefs.IsPack(tools.Current) ? Treats.Name(GameDefs.PackTreat(tools.Current)) + " ×" + tools.PackLeft(GameDefs.PackTreat(tools.Current)) : GameDefs.Tool(tools.Current).name;
_gauge.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None; _gauge.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
_toolKg.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None; _toolKg.style.display = bin ? DisplayStyle.Flex : DisplayStyle.None;
if (!bin) { _toolRate.text = ""; return; } if (!bin) { _toolRate.text = ""; return; }
@ -847,7 +857,7 @@ namespace GrassCutter
string hint = null, voice = null; string hint = null, voice = null;
var tools = _local.Tools; var tools = _local.Tools;
float cap = tools.CurrentCap; float cap = tools.CurrentCap;
if (tools.Belt.Count == 0) if (!tools.Belt.Exists(GameDefs.IsTool))
{ {
hint = Loc.F("Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}).", Binds.Cap(Act.Interact)); hint = Loc.F("Empty hands! Walk to the SUPPLY WALL on the west side of the deck and take the nail scissors ({0}).", Binds.Cap(Act.Interact));
voice = "asst_tools"; voice = "asst_tools";

View File

@ -71,7 +71,7 @@ namespace GrassCutter
Tex.Create(); Tex.Create();
Web = new PhoneWeb((float)WebH / W, (float)H / W); Web = new PhoneWeb((float)WebH / W, (float)H / W);
var main = UnityEngine.Object.FindAnyObjectByType<UIDocument>(FindObjectsInactive.Include); var main = UIRoot.I ? UIRoot.I.GetComponent<UIDocument>() : UnityEngine.Object.FindAnyObjectByType<UIDocument>(FindObjectsInactive.Include);
var ps = UnityEngine.Object.Instantiate(main.panelSettings); var ps = UnityEngine.Object.Instantiate(main.panelSettings);
ps.targetTexture = Tex; ps.targetTexture = Tex;
ps.scaleMode = PanelScaleMode.ConstantPixelSize; ps.scaleMode = PanelScaleMode.ConstantPixelSize;

View File

@ -165,6 +165,14 @@ namespace GrassCutter
if (animate) UIK.SlideIn(_detail, new Vector2(40, 0), 0.05f, 0.3f); if (animate) UIK.SlideIn(_detail, new Vector2(40, 0), 0.05f, 0.3f);
} }
/// <summary>Hang a tool back on the wall: the slot is free for another tool or a pack of treats.</summary>
void OffBelt(PlayerTools tools, ToolId t)
{
var b = UIK.Btn(Loc.T("TAKE OFF BELT"), () => { tools.Unequip(t); Sfx.Play("plastic_grab", 0.5f, 0.8f); Rebuild(false); }, "btn btn-small", _detail);
b.style.alignSelf = Align.Stretch;
b.style.marginTop = 8;
}
/// <summary>The button of the selected item: buy it, put it on the belt, or take it in hand.</summary> /// <summary>The button of the selected item: buy it, put it on the belt, or take it in hand.</summary>
void Action() void Action()
{ {
@ -193,11 +201,16 @@ namespace GrassCutter
double price = ts.ToolPrice(GameDefs.Tool(t)); double price = ts.ToolPrice(GameDefs.Tool(t));
Buy(price <= 0d ? Loc.T("TAKE IT") : Loc.F("BUY {0}", UIK.Money(price)), price, () => ts.BuyToolRpc((byte)t)); Buy(price <= 0d ? Loc.T("TAKE IT") : Loc.F("BUY {0}", UIK.Money(price)), price, () => ts.BuyToolRpc((byte)t));
} }
else if (tools.Current == t) Done(Loc.T("IN YOUR HANDS")); else if (tools.Current == t)
{
Done(Loc.T("IN YOUR HANDS"));
OffBelt(tools, t);
}
else else
{ {
var b = UIK.Btn(tools.Belt.Contains(t) ? Loc.T("TAKE IN HAND") : Loc.T("PUT ON BELT"), () => { tools.Equip(t); Sfx.Play("plastic_grab", 0.6f); Rebuild(false); }, "btn btn-green", _detail); var b = UIK.Btn(tools.Belt.Contains(t) ? Loc.T("TAKE IN HAND") : Loc.T("PUT ON BELT"), () => { tools.Equip(t); Sfx.Play("plastic_grab", 0.6f); Rebuild(false); }, "btn btn-green", _detail);
b.style.alignSelf = Align.Stretch; b.style.alignSelf = Align.Stretch;
if (tools.Belt.Contains(t)) OffBelt(tools, t);
} }
} }
} }

Some files were not shown because too many files have changed in this diff Show More