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); }
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(); }); } }
public void FadeOutEnd(DisplayAttrUnit displayAttrUnit) { this.playingFadeout.Remove(displayAttrUnit); displayAttrUnit.Reset(); }