feat: Add haptic system integration and audio test UI

- Add new audio assets and PlaySoundBind script for testing audio playback via UI input field.
- Implement haptic feedback integration in SfxSystem and fix initialization timing in HapticSystem.
- Update project settings with correct Android target architecture.
- Adjust DSP buffer size and enable development build debug logging.
This commit is contained in:
2026-04-14 10:18:34 +08:00
parent d8a787d9ce
commit 340b52e6b4
15 changed files with 864 additions and 34 deletions
@@ -10,9 +10,9 @@ namespace OCES.Haptic
{
public static HapticSystem Instance {get; private set;}
[NonSerialized]
public bool IsHapticSupported = DeviceCapabilities.isVersionSupported;
public bool IsHapticSupported;
[NonSerialized]
public bool IsMeetsAdvanceRequirements = DeviceCapabilities.meetsAdvancedRequirements;
public bool IsMeetsAdvanceRequirements;
HapticObjectConfig m_hapticObjects;
const string k_hapticConfigPath = "HapticData/";
@@ -96,7 +96,7 @@ namespace OCES.Haptic
}
public void Stop()
public void Stop(uint? hapticId = null)
{
HapticController.Stop();
}
@@ -112,6 +112,8 @@ namespace OCES.Haptic
DontDestroyOnLoad(gameObject);
this.m_hapticObjects = HapticConfigLoader.Load<HapticObjectConfig>(k_hapticConfigPath + "HapticObject");
this.IsHapticSupported = DeviceCapabilities.isVersionSupported;
this.IsMeetsAdvanceRequirements = DeviceCapabilities.meetsAdvancedRequirements;
}
static HapticClip GetHapticClip(HapticObject hapticObject)