protected virtual void InvokeComplete() { if (delayInvokeComplete == 0f) { if (OnCommandComplete != null) { OnCommandComplete(this); } } else { EnterFrameTimer.SetTimeOut((uint)(delayInvokeComplete * 1000), delegate() { if (OnCommandComplete != null) { OnCommandComplete(this); } }); } }