private void GetByteResOnFinish(NetAssurer assurer, Action <byte[]> callback) { if (callback == null) { return; } if (assurer == null) { callback(null); } callback(assurer.Get()); }
private void GetResOnFinish <T>(NetAssurer assurer, Action <T> callback) where T : UnityEngine.Object { if (callback == null) { return; } if (assurer == null) { callback(null); } callback(assurer.Get <T>()); }