public void ShowOverLayer() { gameState = enGameState.over; int selmodel = PlayerPrefs.GetInt(GameConst.USERDATANAME_MODEL, 0); int basescores = PlayerPrefs.GetInt(GameConst.USERDATANAME_MODEL_MAXSCORES + selmodel); int thisscores = role.scores; if (basescores < thisscores) { PlayerPrefs.SetInt(GameConst.USERDATANAME_MODEL_MAXSCORES + selmodel, thisscores); GameCenterManager.GetInstance().UploadScores(GameConst.gameModels[selmodel].lbname, thisscores); } PlayerPrefs.SetInt(GameConst.USERDATANAME_MODEL_LASTSCORES + selmodel, thisscores); if (reviveCount <= 0 && ADManager.GetInstance().isAdLoaded) { inGameUIManager.ShowReviveLayer(); } else { inGameUIManager.ShowResultLayer(); } reviveCount += 1; }