internal void ShowMenuOptions(ButtonContainerController m) { if (!isSpawned && commands.Count == 0) { Command.TYPES.ToList().ForEach(t => m.GetByName(Command.GetDisplay(t)).SetActive(t == Command.SPAWN_COMMAND_ID)); } else { Command.TYPES.ToList().ForEach(t => { int num = GetNumCommandType(t); bool active = num < Command.limit[t] && !t.Equals(typeof(Command.Spawn)); MenuItemController item = m.GetByName(Command.GetDisplay(t)); item.SetActive(active); }); } }