Skip to content

Commit 0e4d7f9

Browse files
Google Play Teamthanwah
Google Play Team
authored andcommitted
Remove unnecessary warning
This change removes the warning log: "An instance of PlayAssetDeliveryEventHandler is already present in the scene. Self Destructing..." PiperOrigin-RevId: 335074673
1 parent 9e8a602 commit 0e4d7f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

GooglePlayPlugins/com.google.play.core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
### New Features
55
- Updated playcore.aar from 1.8.0 to 1.8.2
66
- Updated Play Core library license to https://developer.android.com/guide/playcore/license
7+
### Bug Fixes
8+
- Removed unnecessary warning
79

810
## [1.2.0] - 2020-07-27
911
### New Features

GooglePlayPlugins/com.google.play.core/Runtime/Scripts/Internal/PlayCoreEventHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class PlayCoreEventHandler : MonoBehaviour
2929
// This must be called from Main thread.
3030
public static void CreateInScene()
3131
{
32-
var obj = new GameObject {name = "PlayAssetDeliveryEventHandler"};
32+
var obj = new GameObject {name = "PlayCoreEventHandler"};
3333
DontDestroyOnLoad(obj);
3434
obj.AddComponent<PlayCoreEventHandler>();
3535
}
@@ -62,8 +62,6 @@ private void Awake()
6262
{
6363
if (_instance != null)
6464
{
65-
Debug.LogWarning("An instance of PlayAssetDeliveryEventHandler is already present in the scene. " +
66-
"Self-destructing...");
6765
Destroy(this);
6866
return;
6967
}

0 commit comments

Comments
 (0)