public int GetMaxLayer() { if (Platforms.Count > 0) { return(Platforms.Max(x => x.layer)); } return(30); }