private void ReplaceCharacterSelection() { if (!((UnityEngine.Object)controller == (UnityEngine.Object)null)) { controller.RemoveLast(); SelectDeliverable(); } }
public static void Prefix(CharacterSelectionController __instance, List <ITelepadDeliverable> ___selectedDeliverables, ref bool ___allowsReplacing) { __instance.RemoveLast(); //var copy = new List<ITelepadDeliverable>(___selectedDeliverables); //foreach (var sub in copy) // __instance.RemoveDeliverable(sub); //___selectedDeliverables.Clear(); }