public DotBuild(GameObject view, float scale, DotMotion motion, Sprite sprite) { View = view; Scale = scale; Motion = motion; Sprite = sprite; }
private void StartDotMotion(DotMotion d, int index) { if (d == null) { return; } DotMotion next = null; next = index == CurrentsMotions.Count - 1 ? null : CurrentsMotions[index + 1]; d.Play(() => { if (next != null) { StartDotMotion(next, index + 1); } else { OnDotsMotionComplete(); } }); }