// Start is called before the first frame update void Awake() { random = new System.Random(); selectedBlocks = new List <GameObject>(); init = gameObject.GetComponent <InitializeLevel>(); grid = gameObject.GetComponent <MyGrid>(); hexagonalCenterItem = Resources.Load <GameObject>("Prefabs/SelectObject"); hexagonalShade = Resources.Load <GameObject>("Prefabs/HexagonalShade"); scoreText = GameObject.Find("CurrentScoreText").GetComponent <Text>(); highScoreText = GameObject.Find("HighScoreText").GetComponent <Text>(); totalMovesText = GameObject.Find("MovesValue").GetComponent <Text>(); highScoreText.text = "High Score: " + PlayerPrefs.GetFloat("HighScoreF").ToString(); }