IEnumerator ListenSmartPiece() { while (true) { if (OnSmartPiece != null) { SmartPiece sp = SmartPiece.Get(); if (sp != null) { OnSmartPiece(sp); } } yield return(new WaitForEndOfFrame()); } }
void Handler_OnSmartPiece(SmartPiece sp) { PTDebug("OnSmartPiece" + sp.ToString()); }