Example #1
0
 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));
     }
 }
Example #2
0
    private void onRequestOnly(PhPRequestData _data)
    {
        PHPRequest php = gameObject.AddComponent <PHPRequest>();

        php.Requre(_data);
    }