public override void OnCloseAnimationEnd() { PlayerSelectorPopup selector = source as PlayerSelectorPopup; selector.onSelectionEnded?.Invoke(selector.caller, GetSelectedPlayer()); base.OnCloseAnimationEnd(); }
public override void Call(Player caller, bool showMessage = false) { PlayerSelectorPopup selector = new PlayerSelectorPopup(caller, OnSelectionEnded); PopupSystem.instance.AddPopup(selector); }