/// <summary> /// Prepares a gob for a game session. /// </summary> private void Prepare(Gob gob) { gob.Arena = this; if (IsForPlaying) { if (gob.Layer == Gobs.GameplayLayer || gob.Layer == Gobs.GameplayOverlayLayer) Register(gob); else { // Gobs outside the gameplay layer cannot collide. // To achieve this, we take away all the gob's collision areas. gob.ClearCollisionAreas(); } } gob.Activate(); }