private void SetStartingKube() { Kube startingKube = KQueue.Dequeue(); startingKube.transform.position = Vector3.zero; startingKube.gameObject.SetActive(true); startingKube.SetKubeColor(colorPicker.startingColor); }
public void EnableKubeAtLocation(Vector3 location) { if (KQueue.Count > 0) { Kube kube = KQueue.Dequeue(); kube.transform.position = location; kube.SetKubeColor(colorPicker.color); kube.gameObject.SetActive(true); Debug.Log($"Dequeuing with color {colorPicker.color}... Kubes remaining in KQueue: {KQueue.Count}"); SetRemainingKubesText(); } }