@@ -67,6 +67,12 @@ public override void Init()
67
67
App . On ( ApplicationEvents . ON_APPLICATION_START_COMPLETE , ( sender , e ) =>
68
68
{
69
69
70
+ IResources res = App . Make < IResources > ( ) ;
71
+ res . LoadAsync < GameObject > ( "prefab/asset6/test-prefab" , ( obj ) =>
72
+ {
73
+ Object . Instantiate ( obj ) ;
74
+ } ) ;
75
+
70
76
//h.Cancel();
71
77
72
78
//App.Event.Trigger(ApplicationEvents.ON_INITED);
@@ -123,7 +129,7 @@ public override void Init()
123
129
subThread.Start();
124
130
125
131
*/
126
-
132
+ /*
127
133
ITimeQueue timeQueue = App.Make<ITimeQueue>();
128
134
129
135
ITimeTaskHandler h = timeQueue.Task(() =>
@@ -147,7 +153,7 @@ public override void Init()
147
153
Debug.Log("queueComplete");
148
154
});
149
155
150
- timeQueue . Play ( ) ;
156
+ timeQueue.Play(); */
151
157
/*
152
158
153
159
FThread.Instance.Task(() =>
@@ -168,7 +174,7 @@ public override void Init()
168
174
169
175
});*/
170
176
171
-
177
+ /*
172
178
App.On(SocketRequestEvents.ON_MESSAGE + typeof(IConnectorSocket).ToString(), (obj1, obj2) =>
173
179
{
174
180
@@ -235,7 +241,7 @@ public override void Init()
235
241
236
242
IConnectorUdp udpConnect2 = FNetwork.Instance.Create<IConnectorUdp>("udp.unbind.host.frame");
237
243
udpConnect2.Connect();
238
- udpConnect2 . Send ( "hello world(client udp)" . ToByte ( ) , "pvp.gift" , 3301 ) ;
244
+ udpConnect2.Send("hello world(client udp)".ToByte() , "pvp.gift", 3301);*/
239
245
240
246
241
247
} ) ;
0 commit comments