/// <summary>

/// 선언

/// </summary>

IEnumerator _coroutine;



/// <summary>

/// 사용

/// </summary>

_coroutine = Process(0.02f);//0.03 = FPS 30, 0.025 = FPS 40, 0.02 = FPS 50

StartCoroutine(_coroutine);


/// <summary>

/// 중지

/// </summary>

StopCoroutine(_coroutine);



/// <summary>

/// 구현

/// </summary>

IEnumerator Process(float wateTime)

{

     while (true)

     {

            yield return new WaitForSeconds(wateTime);

            

                Process_Update();

           

     }

}

+ Recent posts