The object alive between two scene

  1. I want to keep a object alive,not destroy when switch two scene ,what should I do ?

2.some scripts attach the object that is always alive when switching scene ,is need to call again?
for example, in the prime31 GameCenter plugin, “GameCenterBinding.isGameCenterAvailable” and “GameCenterBinding.authenticateLocalPlayer” should call again in different scene?

thanks

Check out DontDestroyOnLoad() in the docs.

In the case of Prime’s plugins, you stay authenticated with Gamecenter even when the app switches scenes, so no worries there.

Destroy the object of the Prime’s plugins scripts when switch scene, also authenticated with Gamecenter?