void Awake()
{
//Update the button before self-destruction
UpdateButton();
//Check if already active (and destroy if so)
if (SocialManager.Instance != this) {
Destroy(gameObject);
return;
}
DontDestroyOnLoad(gameObject);
busy = false;
#if UNITY_ANDROID
GooglePlayGames.PlayGamesPlatform.Activate();
//Set up human-readable mappings
for (int i = 0 ; i < NAMES.Length; i++)
((GooglePlayGames.PlayGamesPlatform) Social.Active).AddIdMapping(NAMES[i], IDS[i]);
#elif UNITY_IPHONE
GameCenterPlatform.Activate();
#endif
}