using UnityEngine; public class While1 : MonoBehaviour { int i = 0; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { while (i<=10) { print (i); i++; } } // Update is called once per frame void Update() { } }