using UnityEngine; using System.Collections; using UnityEngine.UI; //------------------------------------------------------------------------ //Perlin Noise Agents v1.0 - Update Values Class //--Class controls the updates to the text box when used with the agent count slider //Mode Lab - Written by Luis Quinones //------------------------------------------------------------------------ public class UpdateValue : MonoBehaviour { public Text text; public Slider AgentCountSlider; public Controller control; void Update(){ text.text = control.sceneAgentCount.ToString(); } }