I forgot to update this question as I have fixed my problem myself by adding a call to remove the missing gameobject in my catch statement like this:
try
{
AffectedObjects[I].rigidbody.AddForce(ForceVector);
}
catch
{
AffectedObjects.Remove(AffectedObjects[I]);
return;
}
Trending Articles
More Pages to Explore .....