For some reason, I’m getting an array index out of range. I can’t seem to figure out why its doing this. The code is all right but it says its out of range. Using Unity 5.5
Its on line 38 where we are trying to set SpriteRenderer.sprite to the hitSprites at spriteIndex.