public void AddFloatText(int index, int attrType, long attrValue, bool isEnd) { DisplayAttrData displayAttrData = new DisplayAttrData(); displayAttrData.index = index; displayAttrData.attrType = attrType; displayAttrData.attrValue = attrValue; displayAttrData.isEnd = isEnd; this.dataCashe.Add(displayAttrData); }
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); }