using System; using Base; using Model; namespace Controller { [DisposerEvent(typeof(BenchmakComponent))] public static class BenchmakComponentE { public static async void Awake(this BenchmakComponent component, string address) { try { NetOuterComponent networkComponent = Game.Scene.GetComponent(); for (int i = 0; i < 100; i++) { await Game.Scene.GetComponent().WaitAsync(10); component.TestAsync(networkComponent, address, i); } } catch (Exception e) { Log.Error(e.ToString()); } } } }