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