Exemple #1
0
    /// <summary>
    /// Slows down object in the end of fixed update loop for correct work of vortex debug component
    /// </summary>
    /// <param name="ao"> affected object</param>
    /// <returns> IEnumerator object for Unity coroutine that slows down affected object at the end of fixed update iteration</returns>
    private IEnumerator SlowDown(AffectedObject ao)
    {
        yield return(new WaitForFixedUpdate());

        ao.SlowDown();
    }