using System.Collections; using System.Collections.Generic; using UnityEngine; public class LoopExample : MonoBehaviour { // Start is called before the first frame update void Start() { int x = 0; while (x < 4) { Debug.Log("x is now " + x); x++; } for (int y = 0; y < 4; y++) { Debug.Log("y is now " + y); } } // Update is called once per frame void Update() { } }