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 guessergame from 1 to 1,000. The tasks left is to add two

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!