protected IEnumerator CallAfterTimeCoroutine <T1, T2>(MethodTwoParams <T1, T2> method, T1 p1, T2 p2, float sec) { if (sec > 0) { yield return(new WaitForSeconds(sec)); } method(p1, p2); }
/// <summary> /// 使用两个参数的方法构造一个 BDelegate 实例 /// </summary> /// <param name="methodTwoParams"></param> public BDelegate(MethodTwoParams methodTwoParams) { _methodTwoParams = methodTwoParams; _case = BDelegateTYPE.PARAMSTWO; }