示例#1
0
        static void DrawHandles(CellComponent cell, GizmoType gizmoType)
        {
            GUIStyle style = new GUIStyle();

            style.normal.textColor = Color.white;
            Handles.Label(cell.transform.position, $"[{cell.Position.x},{cell.Position.y}]", style);
        }
示例#2
0
        private void TryToBurn(CellComponent cell)
        {
            if (_processedCells.Contains(cell))
            {
                return;
            }

            var isBurnt = cell.Burn();

            _processedCells.Add(cell);
            if (!isBurnt)
            {
                _leftToBurnCell.Add(cell);
            }
        }