Hi! I'm getting an error that I don't understand. Here's the code...
private List _activeNotifsList;
...
void Start () {
_activeNotifsList = new List();
}
...
public void LerpNotifButtons(){
//If an active notif exists in slot 0 and it is not yet at its target position, lerp it.
if(_activeNotifsList[0] != null)
{
//Do something
}
}
Where the if statement is returning the out of range error. Is it because the list doesn't actually contain any elements yet?
↧