Ejemplo n.º 1
0
    public void GenerateCloudGroup()
    {
        for (int i = 0; i < this.m_CloudGroups.Length; i++)
        {
            var cloud = this.m_CloudGroups[i];
            if (cloud != null)
            {
                this.GenerateCloud(
                    cloud.index,
                    CMapParser.parseV3(cloud.spot1),
                    CMapParser.parseV3(cloud.spot2),
                    CMapParser.parseV3(cloud.rotate),
                    cloud.data
                    );
            }
        }
        this.m_GameController.ShowCloudPanel(this.m_CloudLists, (index) => {
            this.AddCloudSelecteds(index);
        });
        // ADD SELECTED
        var minIndex = 9999;

        for (int i = 0; i < this.m_CloudLists.Count; i++)
        {
            if (minIndex >= this.m_CloudLists[i].index)
            {
                minIndex = this.m_CloudLists[i].index;
            }
        }
        this.AddCloudSelecteds(minIndex);
    }
Ejemplo n.º 2
0
    public void GenerateCloudGroup()
    {
        int i;

        for (i = 0; i < this.m_CloudRoot.childCount; i++)
        {
            DestroyImmediate(this.m_CloudRoot.GetChild(i).gameObject);
            i--;
        }
        for (i = 0; i < this.m_CloudGroups.Length; i++)
        {
            var cloud = this.m_CloudGroups[i];
            this.GenerateCloud(
                cloud.index,
                CMapParser.parseV3(cloud.spot1),
                CMapParser.parseV3(cloud.spot2),
                CMapParser.parseV3(cloud.rotate),
                cloud.data
                );
        }
    }