Move around scripts to cleanup the Minigame structure
This commit is contained in:
3
Assets/Scripts/Minigames/DivingForPictures/Bubbles.meta
Normal file
3
Assets/Scripts/Minigames/DivingForPictures/Bubbles.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 625b24c8ed0e4c41bce0893b2ed07a25
|
||||
timeCreated: 1758543705
|
||||
@@ -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;
|
||||
3
Assets/Scripts/Minigames/DivingForPictures/Monster.meta
Normal file
3
Assets/Scripts/Minigames/DivingForPictures/Monster.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 03f105b6ec1a4b63be259f257aad2cdb
|
||||
timeCreated: 1758543817
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a48ab1197e3d4c6890be54c9102e4091
|
||||
timeCreated: 1758543716
|
||||
@@ -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>
|
||||
3
Assets/Scripts/Minigames/DivingForPictures/Player.meta
Normal file
3
Assets/Scripts/Minigames/DivingForPictures/Player.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f6ccbb338a48404cae0e954b63e8cd3b
|
||||
timeCreated: 1758543727
|
||||
@@ -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)
|
||||
3
Assets/Scripts/Minigames/DivingForPictures/Tiles.meta
Normal file
3
Assets/Scripts/Minigames/DivingForPictures/Tiles.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3dbc161316c4b41a7555e9139539aee
|
||||
timeCreated: 1758543757
|
||||
Reference in New Issue
Block a user