Exemple #1
0
    static public UIBattleEnd GetInstance()
    {
        UIBattleEnd self = UIManager.Singleton.GetUIWithoutLoad <UIBattleEnd>();

        if (self != null)
        {
            return(self);
        }
        self = UIManager.Singleton.LoadUI <UIBattleEnd>("UI/UIBattleEnd", UIManager.Anchor.Center);
        return(self);
    }
Exemple #2
0
    private void ShowBattleEndPanelListener(EventData data)
    {
        UIBase target = UIManager.Instance.GetPanel <UIBattleEnd>("BattleEndingPanel");

        if (target != null && target.IsActiveInHierachy())
        {
            return;
        }
        UIManager.Instance.ShowPanel <UIBattleEnd>("BattleEndingPanel", UIManager.UILayer.Top);
        UIBattleEnd p = UIManager.Instance.GetPanel <UIBattleEnd>("BattleEndingPanel");

        p.ShowText((bool)data.Param, data.Param2 as string);
    }