public void SetData(GameSessionInfoManager.PlayerInfoSession session) { checkPointText.text = session.checkPoint.ToString(); treasureFoundText.text = session.treasureFound.ToString(); finalScoreText.text = session.playerScore.ToString(); pirateSunkText.text = session.piratesSunk.ToString(); }
public void SetData(GameSessionInfoManager.PlayerInfoSession session) { levelTitleText.text = "LEVEL " + session.levelInCheckPoint + " COMPLETED"; //Debug.Log("Player score: " + session.playerScore); currentScoreText.text = "Current score: " + session.playerScore; //Debug.Log("pirates sunk: " + session.piratesSunk); pirateSunkText.text = "Pirates sunk: " + session.piratesSunk; }
public void SetData(GameSessionInfoManager.PlayerInfoSession session) { scoreText.text = session.playerScore.ToString(); if (session.levelInCheckPoint >= CommonConstants.MAX_LEVEL_PER_CHECKPOINT) { levelText.text = "1"; } else { levelText.text = (session.levelInCheckPoint + 1).ToString(); } }
public void SetDataForNextLevelUI(GameSessionInfoManager.PlayerInfoSession session) { nextLevelUIController.SetData(session); }
public void SetDataForResultUI(GameSessionInfoManager.PlayerInfoSession session) { resultUIController.SetData(session); }