Example #1
0
    private void HideShowNodes()
    {
        if (_editNodes == null)
        {
            return;
        }

        for (var x = 0; x < _boardData.BoardSize; x++)
        {
            for (var y = 0; y < _boardData.BoardSize; y++)
            {
                var row = AMoPUtils.GetEditNodeRow(_editNodes, x - _boardData.OffsetValue, y - _boardData.OffsetValue);
                if (row.Closest != null)
                {
                    row.Closest.Show();
                }
                foreach (var h in row.Hidden)
                {
                    if (_sceneOrtho)
                    {
                        h.Hide();
                    }
                    else
                    {
                        h.Fade();
                    }
                }
            }
        }
    }
Example #2
0
 private void ShowAllNodes()
 {
     for (var x = 0; x < _boardData.BoardSize; x++)
     {
         for (var y = 0; y < _boardData.BoardSize; y++)
         {
             var row = AMoPUtils.GetEditNodeRow(_editNodes, x - _boardData.OffsetValue, y - _boardData.OffsetValue);
             row.Closest.Show();
             foreach (var h in row.Hidden)
             {
                 h.Show();
             }
         }
     }
 }