unity c# call function in 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();
}