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