Rough treat spawning

This commit is contained in:
hz
2026-01-31 12:01:32 -06:00
parent ea384d8c7b
commit a3e1b6c29e
8 changed files with 1390 additions and 0 deletions
+59
View File
@@ -183,6 +183,64 @@ BoxCollider2D:
m_AutoTiling: 0
m_Size: {x: 3.5, y: 2.07}
m_EdgeRadius: 0
--- !u!1 &200100000
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 200100001}
- component: {fileID: 200100002}
m_Layer: 0
m_Name: Treat Spawner
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &200100001
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 200100000}
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: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &200100002
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 200100000}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8c0d77dd1488410bb1718b1f8f96fa7d, type: 3}
m_Name:
m_EditorClassIdentifier:
treatPrefab: {fileID: 1000000000000000000, guid: 31e630c3bd57412bb4882033297c1fbf, type: 3}
treatParent: {fileID: 0}
spawnAreaCenter: {x: 0, y: 2}
spawnAreaSize: {x: 16, y: 8}
groundMask:
serializedVersion: 2
m_Bits: 4294967295
groundRaycastHeight: 10
minSpawnInterval: 2.5
maxSpawnInterval: 4
maxTreats: 0
minSpawnSeparation: 1.5
maxSampleAttempts: 8
recentPositionsCount: 6
--- !u!212 &99338071
SpriteRenderer:
serializedVersion: 2
@@ -1816,3 +1874,4 @@ SceneRoots:
- {fileID: 1118230347}
- {fileID: 477169536}
- {fileID: 689117240}
- {fileID: 200100001}