public void heroBtnTapped() { if (!isSeatUnlocked) { return; } if (_heroSelect == null) { _heroSelect = GetComponentInParent <SDHeroSelect>(); } //if (_heroSelect.MainPanel.usingIEcannotTap) return; //_heroSelect.MainPanel.usingIEcannotTap = true; _heroSelect.heroBtnTapped(index); }
// Start is called before the first frame update void Start() { _heroSelect = GetComponentInParent <SDHeroSelect>(); }