Skip to content

Commit 13da201

Browse files
author
YB
committed
demo update
1 parent df810b6 commit 13da201

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Assets/Scripts/Application/Bootstrap.cs

+10-4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ public override void Init()
6767
App.On(ApplicationEvents.ON_APPLICATION_START_COMPLETE, (sender, e) =>
6868
{
6969

70+
IResources res = App.Make<IResources>();
71+
res.LoadAsync<GameObject>("prefab/asset6/test-prefab", (obj) =>
72+
{
73+
Object.Instantiate(obj);
74+
});
75+
7076
//h.Cancel();
7177

7278
//App.Event.Trigger(ApplicationEvents.ON_INITED);
@@ -123,7 +129,7 @@ public override void Init()
123129
subThread.Start();
124130
125131
*/
126-
132+
/*
127133
ITimeQueue timeQueue = App.Make<ITimeQueue>();
128134
129135
ITimeTaskHandler h = timeQueue.Task(() =>
@@ -147,7 +153,7 @@ public override void Init()
147153
Debug.Log("queueComplete");
148154
});
149155
150-
timeQueue.Play();
156+
timeQueue.Play(); */
151157
/*
152158
153159
FThread.Instance.Task(() =>
@@ -168,7 +174,7 @@ public override void Init()
168174
169175
});*/
170176

171-
177+
/*
172178
App.On(SocketRequestEvents.ON_MESSAGE + typeof(IConnectorSocket).ToString(), (obj1, obj2) =>
173179
{
174180
@@ -235,7 +241,7 @@ public override void Init()
235241
236242
IConnectorUdp udpConnect2 = FNetwork.Instance.Create<IConnectorUdp>("udp.unbind.host.frame");
237243
udpConnect2.Connect();
238-
udpConnect2.Send("hello world(client udp)".ToByte() , "pvp.gift", 3301);
244+
udpConnect2.Send("hello world(client udp)".ToByte() , "pvp.gift", 3301);*/
239245

240246

241247
});

0 commit comments

Comments
 (0)