/// <summary> /// Adds each pixel block to the list at runtime /// </summary> private void Awake() { // Sets the Singleton manager = this; // TODO: Add pragma pre-compiler commands to use correct LoadData function call based on platform. DataCube.LoadData(); //Find pixelblocks within the scene foreach (PixelBlock pb in FindObjectsOfType <PixelBlock>()) { pb.Start(); //Note: Have to do this to ensure the Pixelblocks are ready before we move them! pixelBlocks.Add(pb); pb.gameObject.SetActive(false); } ActivePixelBlock = 0; NextPixelBlock(); rowcolSet = new HashSet <Vector2>(); averagePixelBlocks = new HashSet <GameObject>(); }