Skip to content

Commit

Permalink
Remove unnecessary warning
Browse files Browse the repository at this point in the history
This change removes the warning log: "An instance of PlayAssetDeliveryEventHandler is already present in the scene. Self Destructing..."

PiperOrigin-RevId: 335074673
  • Loading branch information
Google Play Team authored and thanwah committed Oct 3, 2020
1 parent 9e8a602 commit 0e4d7f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions GooglePlayPlugins/com.google.play.core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
### New Features
- Updated playcore.aar from 1.8.0 to 1.8.2
- Updated Play Core library license to https://developer.android.com/guide/playcore/license
### Bug Fixes
- Removed unnecessary warning

## [1.2.0] - 2020-07-27
### New Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class PlayCoreEventHandler : MonoBehaviour
// This must be called from Main thread.
public static void CreateInScene()
{
var obj = new GameObject {name = "PlayAssetDeliveryEventHandler"};
var obj = new GameObject {name = "PlayCoreEventHandler"};
DontDestroyOnLoad(obj);
obj.AddComponent<PlayCoreEventHandler>();
}
Expand Down Expand Up @@ -62,8 +62,6 @@ private void Awake()
{
if (_instance != null)
{
Debug.LogWarning("An instance of PlayAssetDeliveryEventHandler is already present in the scene. " +
"Self-destructing...");
Destroy(this);
return;
}
Expand Down

0 comments on commit 0e4d7f9

Please sign in to comment.