Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #180 from bhaptics/bug
Browse files Browse the repository at this point in the history
Fix bug on OnApplicationFocus
  • Loading branch information
SanghunK authored Jul 20, 2021
2 parents 92969c8 + f145aef commit 7c1f06b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ public static void ToggleEnableDevice(HapticDevice device)
androidHapticPlayer.EnableDevice(device.Address, !device.IsEnable);
}

void OnApplicationPause(bool pauseStatus)
void OnApplicationFocus(bool pauseStatus)
{
if (!pauseStatus)
if (pauseStatus)
{
var androidHapticPlayer = BhapticsManager.GetHaptic() as AndroidHaptic;
if (androidHapticPlayer == null)
Expand Down
Binary file modified samples/unity-plugin/ProjectSettings/ProjectSettings.asset
Binary file not shown.

0 comments on commit 7c1f06b

Please sign in to comment.