示例#1
0
 private void DeleteLevel()
 {
     iNumberOfObjects         = 0;
     iNumberOfColors          = 0;
     iNumberOfMovementObjects = 0;
     MMUtils.DeleteAllChildren(tContainer);
 }
示例#2
0
    public void Init()
    {
        v3CurrentPosition = v3StartPosition;

        goCamera.transform.position = v3CameraStartPos;
        goCamera.transform.rotation = qCameraStartRot;

        MMUtils.DeleteAllChildren(this.transform);
        for (int i = 0; i < lb.levels.Length; i++)
        {
            GameObject goLevelSelect = Instantiate(prefLevelSelect, this.transform);
            goLevelSelect.name = i.ToString();
            goLevelSelect.transform.position = v3CurrentPosition;

            Renderer recRenderer = goLevelSelect.GetComponentInChildren <Renderer>();

            recRenderer.material.SetColor("_Color", clrDifficulty[(int)lb.levels[i].levelDifficulty]);

            v3CurrentPosition = v3StartPosition + MMUtils.ListToMatrix(i, MAX_COLUMN) * fOffset;
            goLevelSelect.GetComponentInChildren <TextMesh>().text = (i + 1).ToString();
        }
    }
示例#3
0
 public void DeleteLevel()
 {
     MMUtils.DeleteAllChildren(this.transform);
 }