private void PrepButtons(Planet p) { if (rings.canScan(p.GetComponent <CircleCollider2D>())) { scanButton.gameObject.SetActive(true); } else { scanButton.gameObject.SetActive(false); } if (rings.canTravel(p.GetComponent <CircleCollider2D>())) { travelButton.gameObject.SetActive(true); } else { travelButton.gameObject.SetActive(false); } }