Beispiel #1
0
        public void BuildRandom()
        {
            DataManager.Instance.Reset();

            _fieldWidth  = Random.Range(1, 10);
            _fieldHeight = Random.Range(1, 10);
            _fieldBuilder.DestroyField();

            var fieldData = new FieldData(_fieldWidth, _fieldHeight, _fieldDepth);

            DataManager.Instance.SetFieldData(fieldData);
            _fieldBuilder.BuildField(fieldData);
        }