How to use arrays

Hello, I am sorry if this is a noob question, I am kind of new to programming and I am having some trouble with arrays (trying to understand them).

I was trying to make a sprite change every time specific method is called and I was using an array for that like:

[SerializeField]
private Sprite[] spritePhases;

then in the inspector I set the number of elements for the array to have and assign specific sprites to each one, and in script I wanted to make the array start on element 0 and when specific method is called that element passes to next one which is then assigned to another variable.

Is this possible or am I understanding arrays all wrong?

Sorry if I was not explicit enough.

Thank you.

@Belzyy
If I have understood your query correctly, you need to assign a sprite to an Image/SpriteRenderer/any variable where the sprite is the next array element. This should work for you:

[SerializeField]
private Sprite[] spritePhases;

public Image spriteImage;
int spriteIndex = 0;

public void ChangeSprite()
{
    if (spriteIndex < spritePhases.Length)
    {
        spriteImage.sprite = spritePhases[spriteIndex];
        spriteIndex++;
    }
}

The function ChangeSprite() is the specific method that would change the Sprite. I have taken Image variable to assign sprite, you may take any as per your requirement