public void UpdatePathManagerEnd() { if (collectibles.Count > 0) { collectibles.RemoveAt(0); } if (collectibles.Count <= 0) { pathManager.DisableSeeker(); LoadLevel(); } else { collectibles[0].SetActive(true); pathManager.SetEnd(collectibles[0].GetComponent <Rigidbody2D>()); } }