コード例 #1
0
        IEnumerator ListenSmartPiece()
        {
            while (true)
            {
                if (OnSmartPiece != null)
                {
                    SmartPiece sp = SmartPiece.Get();
                    if (sp != null)
                    {
                        OnSmartPiece(sp);
                    }
                }

                yield return(new WaitForEndOfFrame());
            }
        }
コード例 #2
0
 void Handler_OnSmartPiece(SmartPiece sp)
 {
     PTDebug("OnSmartPiece" + sp.ToString());
 }