예제 #1
0
    public void UpdatePatternList()
    {
        //clear list
        _patterns.Clear();
        //valid target check
        if (target == null)
        {
            return;
        }
        int index = _facelist.index;

        if (_faces.Count <= 0 || index < 0 || index >= _facelist.count)
        {
            return;
        }
        //fill list
        target.AddHexagonPatternsToList(_faces[index], _patterns);
    }