Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     achievements  = GetComponent <GoogleAchievements>();
     leaderboards  = GetComponent <GoogleLeaderboards>();
     pointsTexts   = new List <GameObject>();
     uiManager     = GetComponent <UiManager>();
     highScore     = PlayerPersistence.GetHighScore();
     hoopBest      = PlayerPersistence.GetHoopHighScore();
     swishBest     = PlayerPersistence.GetSwishHighScore();
     swishesScored = 0;
     hoopsScored   = 0;
     uiManager.updateHighScoreText(highScore);
     previousScore = -1f;
     score         = 0f;
     newPointsText = Object.Instantiate(pointsTextObject, Vector3.zero, Quaternion.identity);
     newPointsText.transform.localScale = Vector3.zero;
 }