using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
using UnityEngine.SceneManagement;
public class Quiz1 : MonoBehaviour
{
[SerializeField] private TMP_Dropdown dropdown;
public void OnChangedDropdown (int value)
{
public static int answer1 = dropdown.value + 1;
Debug.Log(answer1);
}
}
I would like to use the value from the dropdown in the above script for other scripts. But I get an error and cannot use them. How should I deal with this?