public void OnShowWarning(string text, UIHeroUpgradeHeroSlot curSlot)
 {
     _selectedHeroSlot = curSlot;
     NotificationRoot.SetActive(true);
     Notification_lblText.text = text;
     Notification_btnOk.gameObject.SetActive(false);
 }
    private void InitAllFeed()
    {
        int numHero = GameManager.GameUser.UserRoles.Count;

        for (int i = 0; i < numHero; i++)
        {
            UserRole role = GameManager.GameUser.UserRoles[i];

            GameObject go = NGUITools.AddChild(heroRoot, heroPrefab);
            go.transform.localScale = new Vector3(0.7f, 0.7f, 1);
            UIHeroUpgradeHeroSlot slot = go.GetComponent <UIHeroUpgradeHeroSlot>();
            slot.SetRole(role, this);
            _heros.Add(slot);
            go.SetActive(false);
            heroRoot.GetComponent <UIGrid>().Reposition();
        }
    }