Skip to content

Commit 0d9ea1d

Browse files
authored
Merge pull request #485 from microsoft/release-4.1.0-update-demo
Update demo app for 4.1.0 release
2 parents ae75629 + 9cdd71a commit 0d9ea1d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

AppCenterDemoApp/Assets/Puppet/PuppetReleaseHandler.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class PuppetReleaseHandler : MonoBehaviour
1515
void Awake()
1616
{
1717
Distribute.ReleaseAvailable = OnReleaseAvailable;
18+
Distribute.WillExitApp = OnWillExitApp;
1819
Distribute.NoReleaseAvailable = OnNoReleaseAvailable;
1920
IsDialogCustom = PlayerPrefs.GetInt(PuppetAppCenter.FlagCustomDialog, 0) == 1;
2021
}
@@ -32,6 +33,14 @@ bool OnReleaseAvailable(ReleaseDetails details)
3233
}
3334
}
3435

36+
void OnWillExitApp()
37+
{
38+
lock (_releaseLock)
39+
{
40+
Debug.Log("WillExitApp callback invoked.");
41+
}
42+
}
43+
3544
void OnNoReleaseAvailable()
3645
{
3746
lock (_releaseLock)

0 commit comments

Comments
 (0)