call function in another script of another gameobject

Just use the type of that script as a field, and bind with the gameobject which has this type of script as component.