From 8274d709240c710ae77d3a4de669f5ed19cca4db Mon Sep 17 00:00:00 2001 From: Michal Pikulski Date: Fri, 17 Oct 2025 11:55:30 +0200 Subject: [PATCH] Remove superflous Update() methods and change the tile spawn buffer to 2 --- .../AddressableAssetSettings.asset | 2 +- Assets/Scripts/Animation/BirdEyesBehavior.cs | 6 ------ .../Scripts/Animation/GardenerChaseBehavior.cs | 14 -------------- .../AnnaLiseAnd Lurespots/LureSpot.cs | 11 ----------- .../LawnMowerPuzzle/GardenerBehaviour.cs | 6 ------ .../LawnMowerPuzzle/LawnMowerBehaviour.cs | 7 +------ .../DamianExperiments/Minigame/TrashSpawner.cs | 6 ------ .../DamianExperiments/Picnic/PicnicBehaviour.cs | 6 ------ .../soundBird_TakeOffBehaviour.cs | 8 -------- .../WolterSpawn/WolterStateMachine.cs | 6 ------ .../Quarry/AnneLise/AnneLiseBushBehaviour.cs | 6 ------ .../Quarry/AnneLise/TakePhotoState.cs | 16 +--------------- Assets/Scripts/UI/IntroCinematicsPlayer.cs | 5 ----- Assets/Scripts/UI/TestIndicator.cs | 12 ------------ Assets/Settings/DivingMinigameSettings.asset | 2 +- 15 files changed, 4 insertions(+), 109 deletions(-) diff --git a/Assets/AddressableAssetsData/AddressableAssetSettings.asset b/Assets/AddressableAssetsData/AddressableAssetSettings.asset index 8e4c5ea7..707a8f4c 100644 --- a/Assets/AddressableAssetsData/AddressableAssetSettings.asset +++ b/Assets/AddressableAssetsData/AddressableAssetSettings.asset @@ -15,7 +15,7 @@ MonoBehaviour: m_DefaultGroup: 6f3207429a65b3e4b83935ac19791077 m_currentHash: serializedVersion: 2 - Hash: 8453796ea514a8db40e72d511ee4981c + Hash: 58bff643ea54adc47e3181c09b68468c m_OptimizeCatalogSize: 0 m_BuildRemoteCatalog: 0 m_CatalogRequestsTimeout: 0 diff --git a/Assets/Scripts/Animation/BirdEyesBehavior.cs b/Assets/Scripts/Animation/BirdEyesBehavior.cs index dc1689b0..6482b4ed 100644 --- a/Assets/Scripts/Animation/BirdEyesBehavior.cs +++ b/Assets/Scripts/Animation/BirdEyesBehavior.cs @@ -14,12 +14,6 @@ public class BirdEyesBehavior : MonoBehaviour animator = GetComponentInChildren(); } - // Update is called once per frame - void Update() - { - - } - public void CorrectItem() { correctItemIsIn = true; diff --git a/Assets/Scripts/Animation/GardenerChaseBehavior.cs b/Assets/Scripts/Animation/GardenerChaseBehavior.cs index a3a632ce..b96401bb 100644 --- a/Assets/Scripts/Animation/GardenerChaseBehavior.cs +++ b/Assets/Scripts/Animation/GardenerChaseBehavior.cs @@ -33,18 +33,4 @@ public class GardenerChaseBehavior : MonoBehaviour //Debug.Log ("Tween started!"); animator.SetBool("IsIdle?", false); } - - void Awake() - { - - } - - // Update is called once per frame - void Update() - { - - } - - - } diff --git a/Assets/Scripts/DamianExperiments/AnnaLiseAnd Lurespots/LureSpot.cs b/Assets/Scripts/DamianExperiments/AnnaLiseAnd Lurespots/LureSpot.cs index 4e305601..6a71a26e 100644 --- a/Assets/Scripts/DamianExperiments/AnnaLiseAnd Lurespots/LureSpot.cs +++ b/Assets/Scripts/DamianExperiments/AnnaLiseAnd Lurespots/LureSpot.cs @@ -4,15 +4,4 @@ public class LureSpot : MonoBehaviour { [SerializeField] public GameObject luredBird; [SerializeField] public GameObject annaLiseSpot; - // Start is called once before the first execution of Update after the MonoBehaviour is created - void Start() - { - - } - - // Update is called once per frame - void Update() - { - - } } diff --git a/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/GardenerBehaviour.cs b/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/GardenerBehaviour.cs index 686eba56..01a41afb 100644 --- a/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/GardenerBehaviour.cs +++ b/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/GardenerBehaviour.cs @@ -13,12 +13,6 @@ public class GardenerBehaviour : MonoBehaviour stateMachineRef = GetComponent(); } - // Update is called once per frame - void Update() - { - - } - public void stateSwitch (string StateName) { Logging.Debug("State Switch to: " + StateName); diff --git a/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/LawnMowerBehaviour.cs b/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/LawnMowerBehaviour.cs index 9d72223c..ae82ffdd 100644 --- a/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/LawnMowerBehaviour.cs +++ b/Assets/Scripts/DamianExperiments/LawnMowerPuzzle/LawnMowerBehaviour.cs @@ -11,12 +11,7 @@ public class LawnMowerBehaviour : MonoBehaviour { stateMachineRef = GetComponent(); } - - // Update is called once per frame - void Update() - { - - } + public void mowerTouched() { Logging.Debug("Mower Touched"); diff --git a/Assets/Scripts/DamianExperiments/Minigame/TrashSpawner.cs b/Assets/Scripts/DamianExperiments/Minigame/TrashSpawner.cs index 1c362341..9f92b756 100644 --- a/Assets/Scripts/DamianExperiments/Minigame/TrashSpawner.cs +++ b/Assets/Scripts/DamianExperiments/Minigame/TrashSpawner.cs @@ -30,10 +30,4 @@ public class TrashSpawner : MonoBehaviour sr.sprite = spritePool[Random.Range(0, spritePool.Length)]; } } - - // Update is called once per frame - void Update() - { - - } } diff --git a/Assets/Scripts/DamianExperiments/Picnic/PicnicBehaviour.cs b/Assets/Scripts/DamianExperiments/Picnic/PicnicBehaviour.cs index 9173a8da..b10a58ed 100644 --- a/Assets/Scripts/DamianExperiments/Picnic/PicnicBehaviour.cs +++ b/Assets/Scripts/DamianExperiments/Picnic/PicnicBehaviour.cs @@ -29,12 +29,6 @@ public class PicnicBehaviour : MonoBehaviour animator = GetComponent(); } - // Update is called once per frame - void Update() - { - - } - private IEnumerator StateCycleRoutine() { while (true) diff --git a/Assets/Scripts/DamianExperiments/SoundBirdPuzzleSection/soundBird_TakeOffBehaviour.cs b/Assets/Scripts/DamianExperiments/SoundBirdPuzzleSection/soundBird_TakeOffBehaviour.cs index d5c8c123..0a53901b 100644 --- a/Assets/Scripts/DamianExperiments/SoundBirdPuzzleSection/soundBird_TakeOffBehaviour.cs +++ b/Assets/Scripts/DamianExperiments/SoundBirdPuzzleSection/soundBird_TakeOffBehaviour.cs @@ -44,12 +44,4 @@ public class soundBird_TakeOffBehaviour : MonoBehaviour stateMachine.ChangeState("SoundBirdFlyAround"); // Change to the desired state name } } - - - - // Update is called once per frame - void Update() - { - - } } diff --git a/Assets/Scripts/DamianExperiments/WolterSpawn/WolterStateMachine.cs b/Assets/Scripts/DamianExperiments/WolterSpawn/WolterStateMachine.cs index 0ba1c94f..b730ffa1 100644 --- a/Assets/Scripts/DamianExperiments/WolterSpawn/WolterStateMachine.cs +++ b/Assets/Scripts/DamianExperiments/WolterSpawn/WolterStateMachine.cs @@ -39,10 +39,4 @@ public class WolterStateMachine : MonoBehaviour } } - - // Update is called once per frame - void Update() - { - - } } diff --git a/Assets/Scripts/StateMachines/Quarry/AnneLise/AnneLiseBushBehaviour.cs b/Assets/Scripts/StateMachines/Quarry/AnneLise/AnneLiseBushBehaviour.cs index c672d66b..d2011b37 100644 --- a/Assets/Scripts/StateMachines/Quarry/AnneLise/AnneLiseBushBehaviour.cs +++ b/Assets/Scripts/StateMachines/Quarry/AnneLise/AnneLiseBushBehaviour.cs @@ -11,12 +11,6 @@ public class AnneLiseBushBehaviour : MonoBehaviour anneLiseBushStateMachine = GetComponent(); } - // Update is called once per frame - void Update() - { - - } - public void TakePhoto() { anneLiseBushStateMachine.ChangeState("TakePhoto"); diff --git a/Assets/Scripts/StateMachines/Quarry/AnneLise/TakePhotoState.cs b/Assets/Scripts/StateMachines/Quarry/AnneLise/TakePhotoState.cs index 6b5561bf..24510e97 100644 --- a/Assets/Scripts/StateMachines/Quarry/AnneLise/TakePhotoState.cs +++ b/Assets/Scripts/StateMachines/Quarry/AnneLise/TakePhotoState.cs @@ -12,21 +12,7 @@ public class TakePhotoState : State private GameObject playerCharacter; private PlayerTouchController playerTouchController; private Vector3 newPlayerPosition; - - private - - // Start is called once before the first execution of Update after the MonoBehaviour is created - void Start() - { - - } - - // Update is called once per frame - void Update() - { - - } - + void OnEnable() { playerCharacter = GameObject.FindWithTag("Player"); diff --git a/Assets/Scripts/UI/IntroCinematicsPlayer.cs b/Assets/Scripts/UI/IntroCinematicsPlayer.cs index 43f71dbf..756a1d1f 100644 --- a/Assets/Scripts/UI/IntroCinematicsPlayer.cs +++ b/Assets/Scripts/UI/IntroCinematicsPlayer.cs @@ -50,10 +50,5 @@ public class IntroCinematicsPlayer : MonoBehaviour // Disable the introsequence gameobject when intro is finished playing _introRenderer.enabled = false; - } - // Update is called once per frame - void Update() - { - } } diff --git a/Assets/Scripts/UI/TestIndicator.cs b/Assets/Scripts/UI/TestIndicator.cs index 633db6ef..2af0587a 100644 --- a/Assets/Scripts/UI/TestIndicator.cs +++ b/Assets/Scripts/UI/TestIndicator.cs @@ -2,18 +2,6 @@ using UnityEngine; public class TestIndicator : MonoBehaviour, PuzzleS.IPuzzlePrompt { - // Start is called once before the first execution of Update after the MonoBehaviour is created - void Start() - { - - } - - // Update is called once per frame - void Update() - { - - } - public void OnShow() { gameObject.SetActive(true); diff --git a/Assets/Settings/DivingMinigameSettings.asset b/Assets/Settings/DivingMinigameSettings.asset index 18d5890e..d786bd69 100644 --- a/Assets/Settings/DivingMinigameSettings.asset +++ b/Assets/Settings/DivingMinigameSettings.asset @@ -31,7 +31,7 @@ MonoBehaviour: surfacingSpawnDelay: 5 referenceScreenHeight: 1920 initialTileCount: 3 - tileSpawnBuffer: 1 + tileSpawnBuffer: 2 normalizedTileMoveSpeed: 2 speedUpFactor: 0 speedUpInterval: 10