コード例 #1
0
    protected void DisplayAttr()
    {
        DisplayAttrData displayAttrData = this.dataCashe.get_Item(0);

        this.dataCashe.RemoveAt(0);
        DisplayAttrUnit displayAttrUnit = DisplayAttrManager.displayAttrUnitPool.Get(string.Empty).AddUniqueComponent <DisplayAttrUnit>();

        this.playingMoveTo.Add(displayAttrUnit);
        displayAttrUnit.MoveTo(displayAttrData.index, AttrUtility.GetStandardAddDesc(displayAttrData.attrType, displayAttrData.attrValue), displayAttrData.isEnd);
    }
コード例 #2
0
 public void MoveToEnd(DisplayAttrUnit displayAttrUnit, bool isEnd)
 {
     this.playingMoveTo.Remove(displayAttrUnit);
     this.waitingToFadeout.Add(displayAttrUnit);
     if (isEnd)
     {
         this.waitingFadeoutTimer = TimerHeap.AddTimer(1000u, 0, delegate
         {
             for (int i = 0; i < this.waitingToFadeout.get_Count(); i++)
             {
                 this.waitingToFadeout.get_Item(i).FadeOut();
                 this.playingFadeout.Add(this.waitingToFadeout.get_Item(i));
             }
             this.waitingToFadeout.Clear();
         });
     }
 }
コード例 #3
0
 public void FadeOutEnd(DisplayAttrUnit displayAttrUnit)
 {
     this.playingFadeout.Remove(displayAttrUnit);
     displayAttrUnit.Reset();
 }