public void Select(PawnScript pawn, bool left, bool top, bool right, bool bottom) { if (pawn != null) { leftS.SetActive(left); topS.SetActive(top); rightS.SetActive(right); bottomS.SetActive(bottom); transform.position = pawn.transform.position; informationPanel.SetActive(true); informationPanel.transform.Find("InformationText").GetComponent <Text>().text = pawn.GetInformation(); } gameObject.SetActive(pawn != null); informationPanel.SetActive(pawn != null); }