This is giving me the following error, is there any workaround for this?
‘Assets/timeManager.cs(28,17): error CS0103: The name`StartCoroutine’ does not exist in the current context’
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
public static class timeManager {
private static float originalFixedDelta = Time.fixedDeltaTime;
#region Internal Coroutines
private static IEnumerator SlowMotionCurveCouroutine(float minTimeScale, float totalTime)
{
yield return null;
}
#endregion
public static void SetTimescale(float newTimescale)
{
Time.timeScale = newTimescale;
Time.fixedDeltaTime = newTimescale * originalFixedDelta;
}
public static void SlowMotionCurve(float minTimeScale, float totalTime)
{
StartCoroutine(SlowMotionCurve(minTimeScale, totalTime));
}
}