diff options
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Utils/GameLoop.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/Utils/GameLoop.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/Utils/GameLoop.cs b/SurvivalTest/Assets/Scripts/Utils/GameLoop.cs new file mode 100644 index 0000000..6ae7d87 --- /dev/null +++ b/SurvivalTest/Assets/Scripts/Utils/GameLoop.cs @@ -0,0 +1,20 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class GameLoop : Singleton<GameLoop> +{ + + public GameLoop() + { + indexOfUpdate = 0; + } + + public int indexOfUpdate { get; private set; } = 0; + + public void Update() + { + ++indexOfUpdate; + } + +}
\ No newline at end of file |