Beispiel #1
0
 public void updateSample(PvpPrizeSample _sample)
 {
     if (_sample == null)
     {
         return;
     }
     else
     {
         sample             = _sample;
         winStreakName.text = sample.des.ToString();
         creatPrize();
     }
 }
Beispiel #2
0
    public override void copy(object destObj)
    {
        base.copy(destObj);
        PvpPrizeSample dest = destObj as PvpPrizeSample;

        if (this.item != null)
        {
            dest.item = new List <PrizeSample> ();
            for (int i = 0; i < this.item.Count; i++)
            {
                dest.item.Add(this.item [i].Clone() as PrizeSample);
            }
        }
    }
Beispiel #3
0
    //解析配置
    public override void parseConfig(string str)
    {
        PvpPrizeSample be = new PvpPrizeSample(str);

        if (be.tapCount == WINSTREAK)
        {
            if (list == null)
            {
                list = new List <PvpPrizeSample>();
            }
            list.Add(be);
        }
        else if (be.tapCount == WINSTREAKMAX)
        {
            if (listMax == null)
            {
                listMax = new List <PvpPrizeSample>();
            }
            listMax.Add(be);
        }
    }
Beispiel #4
0
 public void initialize(PvpPrizeSample _sample, WindowBase _win)
 {
     win = _win as PvpPrizeWindow;
     updateSample(_sample);
 }