You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
626 B

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<DShowMoviePlayer>();
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;
}
}
}