public void StopCurrentProc() { //if (currentProc == null || currentProcData == null) //unicon7 : Proc을 시작하자 마자 yield 하기전 외부에서 StopCurrentProc(), DontCurrentProc() 호출시 currentProc은 아직 null이기때문에 종료 될수가 없다. if (currentProcData == null) { return; } Debug.LogWarning("StopCurrentProc() ProcList Begin"); OutputProcList(); Debug.LogWarning("StopCurrentProc() ProcList End"); //targetBehaviour if (onStoppedTrigger != null) { onStoppedTrigger(); onStoppedTrigger = null; } if (currentProcData.routine == null) { targetBehaviour.StopCoroutine(currentProcData.procName); } else { targetBehaviour.StopCoroutine(currentProcData.routine); } DoneProc(); }
public void DoneProc() { currentProcData = null; onStoppedTrigger = null; NextProc(); }