using System.Collections; using System.Collections.Generic; using UnityEngine; using UltraCombos; public class StatManager : MonoBehaviour { DShowMoviePlayer player; int loop_count; int loop_to_trigger = 3; void Start() { player = GetComponent(); loop_count = 0; } // Update is called once per frame void Update() { if(player.GetCurrentTime >= 30f) { loop_count += 1; } if (loop_count >= 3) { Debug.Log("Horse!!"); loop_count = 0; } } }