unity run void from another script

Code Example - unity run void from another script

                
                        myObject.GetComponent<MyScript>().MyFunction();