This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-02-01 04:56:41 +08:00
parent b6461675a8
commit aa4d6c3ce2
932 changed files with 112600 additions and 4058 deletions

View File

@@ -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()

View File

@@ -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";
}
}
}

View File

@@ -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);