Beispiel #1
0
 public DotBuild(GameObject view, float scale, DotMotion motion, Sprite sprite)
 {
     View   = view;
     Scale  = scale;
     Motion = motion;
     Sprite = sprite;
 }
Beispiel #2
0
        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();
                }
            });
        }