public void DisplayTileInHand(int type, PlayerColor color) { GameObject tileInHandDisplay = (GameObject)GameObject.Find("TileInHandDisplay"); if (!tileInHandDisplay) { return; } tileInHandDisplay.SetActive(true); if (tileInHandDisplay.GetComponent <SpriteRenderer>() == null) { Debug.Log("TileInHandDisplay SpriteRenderer was not found"); return; } if (tileSprites == null) { Debug.Log("tileSprites was not found"); return; } tileInHandDisplay.GetComponent <SpriteRenderer>().sprite = tileSprites["tiles" + type]; GameObject playerOnTurnDisplay = (GameObject)GameObject.Find("PlayerOnTurnDisplay"); playerOnTurnDisplay.GetComponent <SpriteRenderer>().color = StationsController.GetPlayerColor(color); }