Get In Touch
London
United Kingdom
Work Inquiries
hello@hillierforshaw.co.uk
@hillierforshaw

Cup Shuffle

 for (int i = 0; i < 5; i++) {
                Cup cup1 = cups[Random.Range(0, cups.Length)];
                Cup cup2 = cup1;

            while (cup2 == cup1) {
                cup2 = cups[Random.Range(0, cups.Length)];

            }

            Vector3 cup1Position = cup1.targetPosition;

            cup1.targetPosition = cup2.targetPosition;
            cup2.targetPosition = cup1Position;

            yield return new WaitForSeconds (.75f);

            }
I Use Google Anyltics to provide a better User Experience.