void NavigateHeroCards() { //navigating hero cards if (Input.GetButtonDown(horizontalAxis)) { currentHeroCard.LeaveMe(); float dir = Input.GetAxisRaw(horizontalAxis); if (dir > 0) { currentHeroCard.right.SelectMe(this); } else { currentHeroCard.left.SelectMe(this); } if (SoundManager.Instance) { SoundManager.Instance.PlaySoundUI(0); } } else if (Input.GetButtonDown(verticalAxis)) { currentHeroCard.LeaveMe(); float dir = Input.GetAxisRaw(verticalAxis); if (dir > 0) { currentHeroCard.up.SelectMe(this); } else { currentHeroCard.down.SelectMe(this); } if (SoundManager.Instance) { SoundManager.Instance.PlaySoundUI(0); } } //go to hero detail if (Input.GetButtonDown(confirmSelectionAxis)) { if (currentHeroCard == null) { return; } isNavigatingSkillUI = true; //switch navigation mode herosPanel.alpha = 0f; //hide this player's hero panel infoUI.Show(); //show selected hero detail info panel currentSkillCard = infoUI.skillCards[0] as SkillCard; currentSkillCard.SelectMe(this); //by default the first skill is selected if (SoundManager.Instance) { SoundManager.Instance.PlaySoundUI(1); } } }