Zmiana obiektu Unity Sprite

public SpriteRenderer spriteRenderer;
public Sprite newSprite;

void ChangeSprite()
    {
        spriteRenderer.sprite = newSprite; 
    }Copied!
Hurt Hoopoe