public void Initialize(SpritesPool pool = null) { if (pool != null) { this.spritesPool = pool; } if (timelineData != null && this.spritesPool != null) { InitializeAnimation(); } }
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; }