how to call a function from another script unity. code example
Example: unity call function from another script
public otherScript other;
void Update()
{
other.funtion();
}
public otherScript other;
void Update()
{
other.funtion();
}