// Use this for initialization void Start() { simulationManager = GameObject.FindGameObjectWithTag("SimulationManager").GetComponent <SimulationManager>(); simulationManager.AddDestinationPoint(this.destiantionType, this.gameObject); destinationMaterial = this.gameObject.GetComponent <Renderer>().material; }