Тест хоппера при отключенной выдаче говорит что выдача отключена и не выдает

This commit is contained in:
_sega 2026-01-22 15:15:39 +03:00
parent fd167a3658
commit ebaf7a080b
6 changed files with 238 additions and 13 deletions

View File

@ -11349,7 +11349,7 @@ Material:
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0.87567496, g: 1, b: 0, a: 1}
- _GlowColor: {r: 1, g: 0.31421307, b: 0, a: 1}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _OutlineColor: {r: 0.554717, g: 0.554717, b: 0.554717, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}

View File

@ -13509,6 +13509,7 @@ MonoBehaviour:
IO_test: {fileID: 438536880}
testSound: {fileID: 8300000, guid: 4617bb2fac96e8a4eb451937db0183cf, type: 3}
ScreenTester: {fileID: 1603925511}
prizingDisabled: {fileID: 8300000, guid: f184441bc5bda974aa81f88f777a28bc, type: 3}
starts: {fileID: 1140329773}
startsNul: {fileID: 19565849}
prize: {fileID: 1764998039}

View File

@ -7,7 +7,7 @@ public class SettingsActions : MonoBehaviour
[SerializeField] AudioClip testSound;
[SerializeField] GameObject ScreenTester;
[SerializeField] AudioClip prizingDisabled;
private GameManager gm => GameManager.instance;
private void OnEnable()
@ -52,7 +52,17 @@ public class SettingsActions : MonoBehaviour
//Панель2
public void EnterIO_test() => gm.stateMachine.ChangeState(new IoTestState(IO_test));
public void HopperTest() => PrizeSystem.GivePrize(new Prize(PrizeType.Hopper, 1));
public void HopperTest()
{
if(SettingsManager.GetBool("Prizing", false))
{
PrizeSystem.GivePrize(new Prize(PrizeType.Hopper, 1));
}
else
{
SoundManager.instance.playClip(prizingDisabled);
}
}
public void SoundTest() => SoundManager.instance.playClip(testSound);
public void ScreenTest() => ScreenTester.SetActive(true);
public void QrTest() => gm.stateMachine.ChangeState(new CheckQrState());

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,23 @@
fileFormatVersion: 2
guid: f184441bc5bda974aa81f88f777a28bc
AudioImporter:
externalObjects: {}
serializedVersion: 7
defaultSettings:
serializedVersion: 2
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
preloadAudioData: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant: