private void DeleteLevel() { iNumberOfObjects = 0; iNumberOfColors = 0; iNumberOfMovementObjects = 0; MMUtils.DeleteAllChildren(tContainer); }
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(); } }
public void DeleteLevel() { MMUtils.DeleteAllChildren(this.transform); }