// Checks whether an object has been inside and is to be border shifted // This is only really relevant for asteroids, so it checks if it is attached to one of them. private bool IsMovingAway() { AsteroidController ac = GetComponent <AsteroidController>(); if (ac != null) { if (ac.GetHasBeenInside()) { // Destroy the mirrors so they get re-instanciated correctly ac.DestroyMirrors(); return(true); } else { return(false); } } else { return(true); } }