Example #1
0
        private void Start()
        {
            _field = new FieldBuilder().BuildField(_fieldGameobject, _fieldModel);
            _pool.Initialize(_levelModel);

            if (_mainCamera == null)
            {
                _mainCamera = Camera.main;
            }

            StartCoroutine(FillInTheLevel());

            _currentMatchingStrategy = _standartMatchingStategy;
        }
 public override bool TryMatch(FieldController field, TileController firstTile, TileController secondTile)
 {
     //TODO: destroy all the Elements in +-1,+-1 radius
     return(base.TryMatch(field, firstTile, secondTile));
 }