You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							26 lines
						
					
					
						
							652 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							26 lines
						
					
					
						
							652 B
						
					
					
				| using System.Collections; | |
| using System.Collections.Generic; | |
| using TMPro; | |
| using UnityEngine; | |
| using UnityEngine.Rendering; | |
| 
 | |
| public class UIManager : MonoBehaviour | |
| { | |
|     public GameObject m_Agent; | |
| 
 | |
|     private float m_Speed; | |
|     private string m_CurrentModel; | |
| 
 | |
|     public TextMeshProUGUI m_ModelName; | |
|     public TextMeshProUGUI m_AgentSpeed; | |
| 
 | |
|     // Update is called once per frame | |
|     void Update() | |
|     { | |
|         m_Speed = m_Agent.GetComponent<Walker>().MTargetWalkingSpeed; | |
|         m_CurrentModel = m_Agent.GetComponent<ModelSwap>().m_currentModelName; | |
| 
 | |
|         m_ModelName.text = m_CurrentModel; | |
|         m_AgentSpeed.text = m_Speed.ToString(); | |
|     } | |
| }
 | |
| 
 |