private void ChangeColor() { ChangedColor?.Invoke(); if (_canPlayerColorChange) { _spriteRenderer.color = _worldPalette.PlayerColor; } }
public Color?ChangeColor(int idElement, Color color) { return(ChangedColor?.Invoke(idElement, color)); }