mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-10-13 02:26:07 +00:00
update
This commit is contained in:
@@ -2,6 +2,7 @@ import { _decorator, Component, director, instantiate, Node, Prefab } from 'cc';
|
||||
import { app } from './App';
|
||||
import { JNGame } from '../../extensions/ngame/assets/ngame/JNGame';
|
||||
import { JNSyncAction } from '../../extensions/ngame/assets/ngame/sync/JNSyncAction';
|
||||
import JNFrameTween, { JTween } from '../../extensions/ngame/assets/ngame/sync/frame/game/tween/JNFrameTween';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('Main')
|
||||
@@ -15,8 +16,12 @@ export class Main extends Component {
|
||||
|
||||
async onLoad(){
|
||||
|
||||
JTween().start();
|
||||
|
||||
//加载 APP
|
||||
await JNGame.Init(app);
|
||||
await JNGame.Init(app,[
|
||||
{path:"proto/GDemo"}
|
||||
]);
|
||||
|
||||
//发生帧同步开始
|
||||
app.socket.Send(JNSyncAction.NSyncFrameStart);
|
||||
|
Reference in New Issue
Block a user