Fixed death bug
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled

- Исправил баг, что при первом запуске игры на автомате, если не сохранить настройки, ток при включенной бесплатной игре девочка возрождалась не на чекпоинте, а на месте смерти
This commit is contained in:
Данил Ярош 2026-01-26 14:13:45 +03:00
parent 5f339c6bd0
commit e929afd2c4
5 changed files with 2004 additions and 40 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1486,7 +1486,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &254276106
RectTransform:
m_ObjectHideFlags: 0
@ -1502,10 +1502,10 @@ RectTransform:
- {fileID: 112784686}
m_Father: {fileID: 1042850270}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 50, y: -162.5}
m_SizeDelta: {x: 400, y: 175}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &254276107
MonoBehaviour:
@ -1807,7 +1807,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 434895585}
m_Direction: 2
m_Value: 0
m_Size: 0.99999774
m_Size: 0.9999979
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
@ -12087,7 +12087,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0.001001656}
m_AnchoredPosition: {x: 0, y: 0.0010092981}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0, y: 1}
--- !u!114 &1792218764

View File

@ -126,24 +126,19 @@ namespace RR.Game2D.Core.Managers
}
// Initialize Settings Manager from Globals
if (Settings == null)
{
Settings = globals.GetComponent<SettingsManager>();
}
if (Settings == null) Settings = globals.GetComponent<SettingsManager>();
if (Settings == null) Settings = SettingsManager.Instance;
Settings.OnSettingsLoaded += OnSettingsChanged;
Settings.OnSettingsSaved += OnSettingsChanged;
// Initialize Payment control
if (Payment == null)
{
Payment = globals.GetComponent<PaymentManager>();
}
if (Payment == null) Payment = globals.GetComponent<PaymentManager>();
if (Plate == null)
{
Plate = globals.GetComponent<ComWrapper>();
}
// Apply loaded settings
Settings.LoadSettings();
if (Plate == null) Plate = globals.GetComponent<ComWrapper>();
Payment.OnCreditAdded.AddListener(OnCreditAdded);

View File

@ -701,7 +701,7 @@ PlayerSettings:
framebufferDepthMemorylessMode: 0
qualitySettingsNames: []
projectName: Mario-like platformer
organizationId:
organizationId: dis_bro
cloudEnabled: 0
legacyClampBlendShapeWeights: 0
hmiLoadingImage: {fileID: 0}