mirror of
				https://github.com/DerTyp7/fps-citybuild-unity.git
				synced 2025-10-31 13:17:07 +01:00 
			
		
		
		
	Interactable Class
This commit is contained in:
		| @@ -0,0 +1,19 @@ | ||||
| using TMPro; | ||||
| using UnityEngine; | ||||
|  | ||||
| public class DropdownSample: MonoBehaviour | ||||
| { | ||||
| 	[SerializeField] | ||||
| 	private TextMeshProUGUI text = null; | ||||
|  | ||||
| 	[SerializeField] | ||||
| 	private TMP_Dropdown dropdownWithoutPlaceholder = null; | ||||
|  | ||||
| 	[SerializeField] | ||||
| 	private TMP_Dropdown dropdownWithPlaceholder = null; | ||||
|  | ||||
| 	public void OnButtonClick() | ||||
| 	{ | ||||
| 		text.text = dropdownWithPlaceholder.value > -1 ? "Selected values:\n" + dropdownWithoutPlaceholder.value + " - " + dropdownWithPlaceholder.value : "Error: Please make a selection"; | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 DerTyp187
					DerTyp187