using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameLoop : MonoBehaviour { static public GameLoop Instance { get; private set; } public int indexOfUpdate { get; private set; } = 0; private void Awake() { Instance = this; } private void Update() { ++indexOfUpdate; } }