Exemplo n.º 1
0
    private void SetStartingKube()
    {
        Kube startingKube = KQueue.Dequeue();

        startingKube.transform.position = Vector3.zero;
        startingKube.gameObject.SetActive(true);
        startingKube.SetKubeColor(colorPicker.startingColor);
    }
Exemplo n.º 2
0
 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();
     }
 }