private void Awake() { Instance = this; //Getting those components.. //distanceScoreCountText = GetComponent<TextMeshProUGUI>(); //bestDistanceText = GetComponent<TextMeshProUGUI>(); //oinsCountText = GetComponent<TextMeshProUGUI>(); // potionsCount = GetComponent<TextMeshProUGUI>(); modifierScore = 1; //Player Component.. player = GameObject.FindGameObjectWithTag("Player").GetComponent <FroggieMovement>(); //Player Transform.. playerCurrentMovement = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); //As soon as the game started, we would be updaing that information.. //UpdateScore(); modifierText.text = "x" + modifierScore.ToString("0.0"); //coinText.text = coinScore.ToString("0"); scoreText.text = score.ToString(); }
private void Awake() { Instance = this; }