private void MovingYes() { GameObject it = GameObject.Find("InfoText"); InfoText infot = it.GetComponent <InfoText>(); infot.YesMoving(); }