Ejemplo n.º 1
0
 /// <summary>
 /// Makes RectTransforms float upwards
 /// </summary>
 /// <param name="rect">Rect.</param>
 private IEnumerator BubbleUp(RectTransform rect)
 {
     while (true) {
         yield return new WaitForFixedUpdate();
         if(!rect.Equals(null)) {
             rect.Translate (0, .001f, 0);
         } else break;
         yield return null;
     }
 }