Esempio n. 1
0
 public void CopyFromAnother(CharPrimitive other)
 {
     _LPos  = other._LPos;
     _LRot  = other._LRot;
     _LScl  = other._LScl;
     _Index = other._Index;
 }
Esempio n. 2
0
        void NewAnimChar(CharPrimitive prim)
        {
            GameObject newCharObj = Instantiate(_CharPrefab) as GameObject;

            InitNewCharObjTF(newCharObj);
            prim.LinkCharObj(newCharObj);
            prim.UpdateChar();
            _Chars.Add(newCharObj);
        }
Esempio n. 3
0
 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;
 }