unity cancel invoke

Code Example - unity cancel invoke

                
                        CancelInvoke("MethodName");
// Cancels all invokes of this method for this monobehviour