void InvokeThinkMethod(ThinkMethod cancelMethod, ThinkMethod invokeMethod, float delay) { CancelInvoke(GetMethodName(cancelMethod)); if (!IsInvoking(GetMethodName(invokeMethod))) { Invoke(GetMethodName(invokeMethod), delay); } }
string GetMethodName(ThinkMethod th) { return(th.Method.Name); }