mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Script
|
||||
|
||||
public static readonly JNGSocket Socket = new JNGSocket();
|
||||
public static readonly JNGSyncFrame Sync = new JNGSyncFrame();
|
||||
public static readonly JAPI Api = new(new JAPIConfig(){BaseURL = "http://192.168.0.118:8080"});
|
||||
public static readonly JAPI Api = new(new JAPIConfig(){BaseURL = "http://192.168.1.23:8080"});
|
||||
public static readonly EventDispatcher Event = EventDispatcher.Event;
|
||||
|
||||
public static SystemBase[] System()
|
||||
|
@@ -10,7 +10,7 @@ namespace Script.AppImpl
|
||||
protected override async UniTask<string> GetUrl()
|
||||
{
|
||||
await UniTask.NextFrame();
|
||||
return "ws://192.168.0.118:8080/websocket";
|
||||
return "ws://192.168.1.23:8080/websocket";
|
||||
}
|
||||
}
|
||||
}
|
@@ -25,7 +25,7 @@ namespace Script.battle.mode
|
||||
public override void OnSyncUpdate(int dt, JNFrameInfo frame, GWorldSceneModeInput input)
|
||||
{
|
||||
Physics.OnUpdate((float) dt / 1000);
|
||||
if (frame.Index > 0 && frame.Index % 4 == 0)
|
||||
if (frame.Index > 0)
|
||||
{
|
||||
var index = GetSync().nRandomInt(0, balls.Length - 1);
|
||||
Debug.Log(index);
|
||||
|
Reference in New Issue
Block a user