diff --git a/Assets/Scenes/Lvl1.unity b/Assets/Scenes/Lvl1.unity index a61fc53..a32ba70 100644 --- a/Assets/Scenes/Lvl1.unity +++ b/Assets/Scenes/Lvl1.unity @@ -1803,6 +1803,14 @@ PrefabInstance: propertyPath: m_Name value: Victory objectReference: {fileID: 0} + - target: {fileID: 3338031591941854971, guid: 27c2bd5700f576947927f549ebca5377, type: 3} + propertyPath: needToHide.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3338031591941854971, guid: 27c2bd5700f576947927f549ebca5377, type: 3} + propertyPath: needToHide.Array.data[0] + value: + objectReference: {fileID: 1733671630} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 27c2bd5700f576947927f549ebca5377, type: 3} --- !u!1001 &6941278968805991357 diff --git a/Assets/Scenes/Lvl9.unity b/Assets/Scenes/Lvl9.unity index eefb246..3ee7a46 100644 --- a/Assets/Scenes/Lvl9.unity +++ b/Assets/Scenes/Lvl9.unity @@ -637,6 +637,14 @@ PrefabInstance: propertyPath: m_Name value: Victory objectReference: {fileID: 0} + - target: {fileID: 3338031591941854971, guid: 27c2bd5700f576947927f549ebca5377, type: 3} + propertyPath: needToHide.Array.size + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3338031591941854971, guid: 27c2bd5700f576947927f549ebca5377, type: 3} + propertyPath: needToHide.Array.data[0] + value: + objectReference: {fileID: 984897188} - target: {fileID: 3338031593245846864, guid: 27c2bd5700f576947927f549ebca5377, type: 3} propertyPath: m_AnchorMax.x value: 1 diff --git a/Assets/Scripts/SettingsAnimationsController.cs b/Assets/Scripts/SettingsAnimationsController.cs index d5bacef..0846e80 100644 --- a/Assets/Scripts/SettingsAnimationsController.cs +++ b/Assets/Scripts/SettingsAnimationsController.cs @@ -6,6 +6,7 @@ public class SettingsAnimationsController : MonoBehaviour { [SerializeField] private GameObject settingsBox; [SerializeField] private GameObject shadowBackground; + private bool _animationProgress; private GameObject[] _belts; private void Start() @@ -15,6 +16,8 @@ private void Start() public void OpenSettings() { + if (_animationProgress) return; + _animationProgress = true; shadowBackground.transform.GetComponent().DOFade(0.5f, 1); settingsBox.transform.DOLocalMoveY(760, 0); ObjectExtension.GetSavedObjects()[0].transform.GetComponent().DOPitch(0.8f, 1); @@ -22,11 +25,14 @@ public void OpenSettings() .OnComplete(() => { foreach (var belt in _belts) belt.gameObject.GetComponent().enabled = false; + _animationProgress = false; }); } public void CloseSettings() { + if (_animationProgress) return; + _animationProgress = true; shadowBackground.transform.GetComponent().DOFade(0, 1); settingsBox.transform.DOLocalMoveY(520, 0); ObjectExtension.GetSavedObjects()[0].transform.GetComponent().DOPitch(1, 1); @@ -36,6 +42,7 @@ public void CloseSettings() foreach (var belt in _belts) belt.gameObject.GetComponent().enabled = true; shadowBackground.SetActive(false); gameObject.SetActive(false); + _animationProgress = false; }); } } \ No newline at end of file diff --git a/Assets/Scripts/VictoryAnimationsController.cs b/Assets/Scripts/VictoryAnimationsController.cs index 6851ce2..756ff25 100644 --- a/Assets/Scripts/VictoryAnimationsController.cs +++ b/Assets/Scripts/VictoryAnimationsController.cs @@ -5,12 +5,14 @@ public class VictoryAnimationsController : MonoBehaviour { [SerializeField] private GameObject victoryBox; + [SerializeField] private GameObject[] needToHide; private void Start() { PlayVictorySound(); gameObject.transform.GetComponent().DOFade(0.6f, 2).OnComplete(() => { + foreach (var item in needToHide) item.SetActive(false); victoryBox.SetActive(true); victoryBox.transform.DOScale(1, 1); }); diff --git a/ProjectSettings/ProjectSettings.asset b/ProjectSettings/ProjectSettings.asset index f2b945e..b73256e 100644 --- a/ProjectSettings/ProjectSettings.asset +++ b/ProjectSettings/ProjectSettings.asset @@ -134,7 +134,7 @@ PlayerSettings: 16:10: 1 16:9: 1 Others: 1 - bundleVersion: 1.1.0 + bundleVersion: 1.1.1 preloadedAssets: [] metroInputSource: 0 wsaTransparentSwapchain: 0 @@ -160,8 +160,8 @@ PlayerSettings: iPhone: 0 tvOS: 0 overrideDefaultApplicationIdentifier: 1 - AndroidBundleVersionCode: 5 - AndroidMinSdkVersion: 24 + AndroidBundleVersionCode: 7 + AndroidMinSdkVersion: 23 AndroidTargetSdkVersion: 32 AndroidPreferredInstallLocation: 1 aotOptions: diff --git a/ProjectSettings/RiderScriptEditorPersistedState.asset b/ProjectSettings/RiderScriptEditorPersistedState.asset index f350d25..6b3c41b 100644 --- a/ProjectSettings/RiderScriptEditorPersistedState.asset +++ b/ProjectSettings/RiderScriptEditorPersistedState.asset @@ -12,4 +12,4 @@ MonoBehaviour: m_Script: {fileID: 0} m_Name: m_EditorClassIdentifier: Unity.Rider.Editor:Packages.Rider.Editor:RiderScriptEditorPersistedState - lastWriteTicks: -8585513947799261155 + lastWriteTicks: -8585512297529382775 diff --git a/README.md b/README.md index 32b8696..aab5228 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Beltz -Get it on Google Play +Get it on Google Play ### Hyper-casual 2d puzzle game The game is a system of *shafts* and *belts*. It is necessary to make sure that the belts are in the correct position, so that the shafts begin to spin.