This commit is contained in:
2026-07-20 18:47:04 +02:00
2 changed files with 13 additions and 16 deletions
@@ -115,13 +115,10 @@ public sealed class PersistentWwiseFadeInPlayer : MonoBehaviour
OctoSceneFade fade = OctoSceneFade fade =
root.GetComponentInChildren<OctoSceneFade>(true); root.GetComponentInChildren<OctoSceneFade>(true);
if (fade != null) if (fade != null) return fade;
return fade;
} }
} }
// Essential when OctoSceneFade is itself persistent
// or not contained in the newly loaded scene.
return OctoSceneFade.Instance; return OctoSceneFade.Instance;
} }
@@ -146,16 +143,7 @@ public sealed class PersistentWwiseFadeInPlayer : MonoBehaviour
private void OnFadeIn() private void OnFadeIn()
{ {
if (_fadeInEvent == null) if (_fadeInEvent == null) return;
{
Debug.LogWarning(
$"[{nameof(PersistentWwiseFadeInPlayer)}] " +
"No Wwise Event assigned.",
this
);
return;
}
_fadeInEvent.Post(gameObject); _fadeInEvent.Post(gameObject);
} }
+11 -2
View File
@@ -39,7 +39,9 @@ PlayerSettings:
y: 0 y: 0
width: 1 width: 1
height: 1 height: 1
m_SplashScreenLogos: [] m_SplashScreenLogos:
- logo: {fileID: 21300000, guid: 5e88f363c3083d74d93420ce5783fec0, type: 3}
duration: 2
m_VirtualRealitySplashScreen: {fileID: 0} m_VirtualRealitySplashScreen: {fileID: 0}
m_HolographicTrackingLossScreen: {fileID: 0} m_HolographicTrackingLossScreen: {fileID: 0}
defaultScreenWidth: 1024 defaultScreenWidth: 1024
@@ -297,7 +299,14 @@ PlayerSettings:
AndroidAppBundleSizeToValidate: 150 AndroidAppBundleSizeToValidate: 150
AndroidReportGooglePlayAppDependencies: 1 AndroidReportGooglePlayAppDependencies: 1
androidSymbolsSizeThreshold: 800 androidSymbolsSizeThreshold: 800
m_BuildTargetIcons: [] m_BuildTargetIcons:
- m_BuildTarget:
m_Icons:
- serializedVersion: 2
m_Icon: {fileID: 2800000, guid: 7d2472d66eed2e446a79641cee51879a, type: 3}
m_Width: 128
m_Height: 128
m_Kind: 0
m_BuildTargetPlatformIcons: m_BuildTargetPlatformIcons:
- m_BuildTarget: iPhone - m_BuildTarget: iPhone
m_Icons: m_Icons: