public void StartTimerCoroutine(float time, MethodAfterTime method) { AnimatorTimer aTimer = new AnimatorTimer(time, method); aTimer.methodTrigger += methodTrigger; aTimer.runMethodAfterTime(); }
public AnimatorTimer(float timeInput, MethodAfterTime methodInput) : base(timeInput) { method = methodInput; time = timeInput; }