private IEnumerator request() { while (true) { if (m_requests.Count > 0) { foreach (PhPRequestData req in m_requests) { PHPRequest php = gameObject.AddComponent <PHPRequest>(); php.Requre(req); } } yield return(new WaitForSeconds(m_requestDelay)); } }
private void onRequestOnly(PhPRequestData _data) { PHPRequest php = gameObject.AddComponent <PHPRequest>(); php.Requre(_data); }