Hello again! I have a problem whit this
Assets\Scripts\NumberWizard.cs(11,22): error CS0246: The type or namespace name ‘TextMeshProUGUI’ could not be found (are you missing a using directive or an assembly reference?)
and this
Assets\Scripts\NumberWizard.cs(4,7): error CS0246: The type or namespace name ‘TMpro’ could not be found (are you missing a using directive or an assembly reference?)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMpro;
public class NumberWizard : MonoBehaviour
{
[SerializeField] int max;
[SerializeField] int min;
[SerializeField] TextMeshProUGUI guessText;
int guess;
// Use this for initialization
void Start()
{
StartGame();
}
void StartGame()
{
max = max + 1;
guess = (max + min) / 2;
}
public void OnPressHigher()
{
min = guess;
NextGuess();
}
public void OnPressLower()
{
max = guess;
NextGuess();
}
void NextGuess()
{
guess = (max + min) / 2;
}
}