Как ссылаться на функцию в единстве
public GameObject myObject; //make ref. in inspector window
myObject.GetComponent<MyScript>().MyFunction();
Comfortable Caterpillar
public GameObject myObject; //make ref. in inspector window
myObject.GetComponent<MyScript>().MyFunction();
void Start()
{
ClickToMove = FindObjectOfType<ClickToMoveScript>();
ClickToMove.PlayWoodCuttingAnim();
}
public otherScript other;
void Update()
{
other.funtion();
}
void Start()
{
method.Add <function>().getMethodType("UnderMoved") = false;
}