using UnityEngine; public class SampleTopicSubscriber : MonoBehaviour { //This class only purpose is to subscribe the MQTTController to a topic for this sample. //In production environments, it should be supplied with an according CartesianTransform (See com.ant-automation.antcity.base.geoutils). public MqttController Controller; public string EncoderName = "SUMO.net"; // Start is called before the first frame update void Start() { string topic = "Agents"; Vector2 point1 = new Vector2(1, 1); Vector2 point2 = new Vector2(2, 2); Vector2 reflection = new Vector2(1, 1); float angle = 0f; CartesianTransform cartesianTransform = new CartesianTransform(point1, point2, point1, point2, reflection, angle); Controller.Subscribe(topic, EncoderName, cartesianTransform); } // Update is called once per frame void Update() { } }