From e0a5a69707d1b19ef2d0e94123efb50cf024b1c7 Mon Sep 17 00:00:00 2001 From: Ali Sharoz Date: Tue, 19 Nov 2024 19:24:38 +0500 Subject: [PATCH] Bug fixes --- Assets/ButtonSoundAdder.cs | 23 + Assets/ButtonSoundAdder.cs.meta | 11 + Assets/ButtonSoundAdder.prefab | 47 ++ Assets/ButtonSoundAdder.prefab.meta | 7 + Assets/DeviceSafeArea.cs | 101 ++++ Assets/DeviceSafeArea.cs.meta | 11 + Assets/LoadingIcon.prefab | 183 +++++++ Assets/LoadingIcon.prefab.meta | 7 + Assets/PipeOut/Scenes/GameScene.unity | 22 +- Assets/PipeOut/Scenes/HomeScene.unity | 727 +++++++++++++++----------- Assets/PipeOut/Scenes/Loading.unity | 297 +++++------ Assets/ShopManager.cs | 26 +- Packages/manifest.json | 1 + Packages/packages-lock.json | 7 + 14 files changed, 950 insertions(+), 520 deletions(-) create mode 100644 Assets/ButtonSoundAdder.cs create mode 100644 Assets/ButtonSoundAdder.cs.meta create mode 100644 Assets/ButtonSoundAdder.prefab create mode 100644 Assets/ButtonSoundAdder.prefab.meta create mode 100644 Assets/DeviceSafeArea.cs create mode 100644 Assets/DeviceSafeArea.cs.meta create mode 100644 Assets/LoadingIcon.prefab create mode 100644 Assets/LoadingIcon.prefab.meta diff --git a/Assets/ButtonSoundAdder.cs b/Assets/ButtonSoundAdder.cs new file mode 100644 index 00000000..f7110b5b --- /dev/null +++ b/Assets/ButtonSoundAdder.cs @@ -0,0 +1,23 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; + +public class ButtonSoundAdder : MonoBehaviour +{ + public Button[] AllButtons; + void Start() + { + if (AllButtons.Length == 0) + { + AllButtons = FindObjectsOfType