Question: [C# in Unity] The goal here is to make a number guesser game from 1 to 1,000. The tasks left is to add two working
[C# in Unity]
The goal here is to make a number guesser game from 1 to 1,000. The tasks left is to add two working public functions for a 'higher' and 'lower' button, then add two serialized fields for max and min so its configurable in Unity. I have a current int in there but not sure if that should be serialized or not. What's in the Higher() function is probably not right. I'm just not sure where to go from here.
![[C# in Unity] The goal here is to make a number guesser](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3e1035e591_88266f3e102db6a8.jpg)

Pusing System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; Unity Script | references Opublic class NumberGuesser : MonoBehaviour { [SerializeField] TextMeshProUGUI guessText; [SerializeField] TextMeshProUGUI min; [SerializeField] TextMeshProUGUI max; int guess; int current; // Start is called before the first frame update Unity Message o references void Start() { guess = Random.Range(1, 1001); guessText.text = guess.ToString(); O references void Higher() { min. text = guessText. text; O references void Higher() { min.text = guessText. text; guessText. text = guess.ToString(); } E O references void Lower() {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
