Ejemplo n.º 1
0
    public static void ShowGiftWindow(int index = 0)
    {
        GlobalData.RandomEventModel.FilterTimeOut();
        if (GlobalData.RandomEventModel.GiftList.Count == 0)
        {
            return;
        }

        RandowGiftWindow win =
            PopupManager.ShowWindow <RandowGiftWindow>("GameMain/Prefabs/RandomGift/RandowGiftWindow");

        win.SetData(GlobalData.RandomEventModel.GiftList, index);
    }
Ejemplo n.º 2
0
    public static void ShowNewTriggerGift()
    {
        int index = GlobalData.RandomEventModel.GetNewGiftIndex();

        if (index == -1)
        {
            return;
        }

        RandowGiftWindow win =
            PopupManager.ShowWindow <RandowGiftWindow>("GameMain/Prefabs/RandomGift/RandowGiftWindow");

        win.SetData(GlobalData.RandomEventModel.GiftList, index);
    }