public void OnPressBtn(HeroSelectionController selector) { if (!thisIsDecisionCard) { infoUI.ToggleSkillCard(); } else { switch (decision) { case Decision.Back: LeaveMe(); infoUI.Hide(); selector.herosPanel.alpha = 1f; selector.isNavigatingSkillUI = false; break; case Decision.Confirm: infoUI.Hide(); selector.herosPanel.alpha = 1; selector.ConfirmSelection(); break; default: break; } } }
public override void SelectMe(HeroSelectionController selector) { if (isSelected) { return; } frame.gameObject.SetActive(true); isSelected = true; selector.currentHeroCard = this; if (selector.infoUI != null) { selector.infoUI.SetInfo(this); } }
public void SetSelectedHero(HeroSelectionController hc) { if (hc.index == 1) { player_1P_data = hc.currentHeroCard.characterPrefab; } else if (hc.index == 2) { player_2P_data = hc.currentHeroCard.characterPrefab; } else { Debug.LogError("Invild character index passed from Hero selection to GameMnager."); } }
public override void SelectMe(HeroSelectionController selector) { if (isSelected) { return; } isSelected = true; frame.gameObject.SetActive(true); selector.currentSkillCard = this; if (!thisIsDecisionCard) { infoUI.SetSkillInfo(data); } else { infoUI.HideSkillCardImmediately(); } }
public virtual void SelectMe(HeroSelectionController selector) { }
void Start() { heroSControl = GetComponent <HeroSelectionController>(); heroSControl.back.onClick.AddListener(OnEnterBack); }