Move around scripts to cleanup the Minigame structure

This commit is contained in:
2025-09-22 14:50:48 +02:00
parent 96aad806a9
commit da07f778c3
45 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 625b24c8ed0e4c41bce0893b2ed07a25
timeCreated: 1758543705

View File

@@ -145,7 +145,7 @@ namespace Minigames.DivingForPictures
_isSurfacing = true;
// Slow down all existing bubbles
Bubble[] activeBubbles = FindObjectsOfType<Bubble>();
Bubble[] activeBubbles = FindObjectsByType<Bubble>(FindObjectsSortMode.None);
foreach (Bubble bubble in activeBubbles)
{
bubble.speed *= surfacingSpeedFactor;

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 03f105b6ec1a4b63be259f257aad2cdb
timeCreated: 1758543817

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: a48ab1197e3d4c6890be54c9102e4091
timeCreated: 1758543716

View File

@@ -29,13 +29,6 @@ namespace Minigames.DivingForPictures
[Tooltip("Radius around spawn point to check for tile collisions")]
[SerializeField] private float spawnCollisionRadius = 1f;
[Header("Spawn Position")]
[Tooltip("How far below screen to spawn obstacles")]
[SerializeField] private float spawnDistanceBelowScreen = 2f;
[Tooltip("Horizontal spawn range (distance from center)")]
[SerializeField] private float spawnRangeX = 8f;
[Header("Obstacle Properties Randomization")]
[Tooltip("Minimum movement speed for spawned obstacles")]
[SerializeField] private float minMoveSpeed = 1f;
@@ -467,14 +460,6 @@ namespace Minigames.DivingForPictures
spawnInterval = interval;
}
/// <summary>
/// Public method to change spawn range at runtime
/// </summary>
public void SetSpawnRange(float range)
{
spawnRangeX = range;
}
/// <summary>
/// Public method to set speed range at runtime
/// </summary>

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: f6ccbb338a48404cae0e954b63e8cd3b
timeCreated: 1758543727

View File

@@ -212,7 +212,7 @@ public class RopeEndPhysicsFollower : MonoBehaviour
if (attachedRope == null)
{
// Find any rope that has this transform as an endpoint
Rope[] allRopes = FindObjectsOfType<Rope>();
Rope[] allRopes = FindObjectsByType<Rope>(FindObjectsSortMode.None);
foreach (var rope in allRopes)
{
if (rope.EndPoint == transform || rope.StartPoint == transform)

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: b3dbc161316c4b41a7555e9139539aee
timeCreated: 1758543757