unity conocer que script calling function from another code example
Example: unity call function from another script
public otherScript other;
void Update()
{
other.funtion();
}
public otherScript other;
void Update()
{
other.funtion();
}