public void CopyFromAnother(CharPrimitive other) { _LPos = other._LPos; _LRot = other._LRot; _LScl = other._LScl; _Index = other._Index; }
void NewAnimChar(CharPrimitive prim) { GameObject newCharObj = Instantiate(_CharPrefab) as GameObject; InitNewCharObjTF(newCharObj); prim.LinkCharObj(newCharObj); prim.UpdateChar(); _Chars.Add(newCharObj); }
public void SetCharIndexAt(int charPrimId, int charIndex) { if (charPrimId < 0) { return; } if (charPrimId >= _CharPrims.Count) { int newCount = charPrimId - _CharPrims.Count + 1; for (int i = 0; i < newCount; i++) { CharPrimitive cp = new CharPrimitive(); _CharPrims.Add(cp); NewAnimChar(cp); } } _CharPrims [charPrimId]._Index = charIndex; }