void Update() { if (Input.GetKeyDown(KeyCode.S)) { SetStartAndGoal(); mapController.SetSpotsColor(); } if (Input.GetKeyDown(KeyCode.F)) { StartCoroutine(FindAPath()); } if (Input.GetKeyDown(KeyCode.R)) { ResetAll(); } }