private void UpdateSelection(HighlightSignal signal) { var selection = signal.SelectionData.FirstOrDefault(i => i.Position == _boardPosition.GetBoardPosition()); if (selection == null) { _meshRenderer.enabled = false; return; } _meshRenderer.enabled = true; _meshRenderer.material = _boardHighlightMaterials.GetMaterial(selection.Type); }
private void OnMouseEnter() { _signalBus.Fire(new BoardMouseEnterSignal(_boardPosition.GetBoardPosition())); }