private void Start() { gameSession = FindObjectOfType <GameSessionScore>().GetComponent <GameSessionScore>(); CheckHighScore(); arrowsAvoidedText.text = "Arrows Avoided: " + gameSession.projectilesAvoided.ToString(); pointsPickedUpText.text = "Points Picked up: " + gameSession.pointsPickedup.ToString(); multiplierText.text = "Multiplier: " + gameSession.multiplier.ToString(); finalScoreText.text = "Final Score: " + gameSession.CalculateFinalScore().ToString(); highScoreText.text = "High Score: " + PlayerPrefsController.GetHighScore().ToString(); }
public void Init(GameObject player, Pooler pooler, CameraShake cameraShake, GameSessionScore scoreManager, SoundPlayer soundPlayer) { _player = player; _pooler = pooler; _scoreManager = scoreManager; _soundPlayer = soundPlayer; _cameraShake = cameraShake; _weapon.Init(player, pooler); _weaponPosition.Init(player); if (_isFlying) { GetComponent <Pathfinding.AIDestinationSetter>().target = player.transform; } }
private void Start() { gameSession = FindObjectOfType <GameSessionScore>(); }