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