Ejemplo n.º 1
0
    public void resetCurrentQuestion()
    {
        BWFlowersLayer layer = flowersLayer.GetComponent <BWFlowersLayer>();

        foreach (GameObject flower in layer.flowers)
        {
            BWFlower flowerObj = flower.GetComponent <BWFlower>();
            flowerObj.setDisabled();
        }
    }
Ejemplo n.º 2
0
    public void resetFlowersLayer()
    {
        foreach (GameObject flower in flowers)
        {
            BWFlower flowerObj = flower.GetComponent <BWFlower>();
            flowerObj.setDisabled();
        }

        if (tracingLines != null)
        {
            while (tracingLines.Count > 0)
            {
                DestroyObject((GameObject)tracingLines[0]);
                tracingLines.RemoveAt(0);
            }
            tracingLines = new ArrayList();
        }
    }