public void Death() { if (dead) { return; } AudioManager.instance.Play(2); Destroy(currentLine); playerRb.constraints = RigidbodyConstraints2D.FreezePositionX; playerRb.AddForce(Vector3.up * 1000f); //player.GetComponent<Animator>().SetTrigger("Death"); dead = true; canvas.SetTrigger("Fade"); //scoreUI.SetText(Social.localUser.authenticated + Social.localUser.userName); //achievements if (score >= 100) { GPlayGames.UnlockAchievement(GPGSIds.achievement_100_points); //GPlayGames.ShowAchievementsUI(); } //leaderboards GPlayGames.AddScoreToLeaderboard(GPGSIds.leaderboard_highscore, score); //GPlayGames.ShowLeaderboardsUI(GPGSIds.leaderboard_highscore); }
public void UnlockFullScore() { GPlayGames.UnlockAchievement(GPGSIds.achievement_full_score); }
public void UnlockGameOver() { GPlayGames.UnlockAchievement(GPGSIds.achievement_game_over); }