Esempio n. 1
0
 public void Initialize(SpritesPool pool = null)
 {
     if (pool != null)
     {
         this.spritesPool = pool;
     }
     if (timelineData != null && this.spritesPool != null)
     {
         InitializeAnimation();
     }
 }
Esempio n. 2
0
        public void Clone(AnimationDataAsset copy)
        {
            Animations.Clear();
            for (int i = 0; i < copy.Animations.Count; i++)
            {
                Animations.Add(copy.Animations[i]);
            }

            CurrentSpritesPool = copy.CurrentSpritesPool;
            PixelsPerUnits     = copy.PixelsPerUnits;
            IsEditorMode       = copy.IsEditorMode;
        }