This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-23 02:39:12 +08:00
parent e3781116dc
commit e99fc3929c
9 changed files with 35 additions and 10 deletions

View File

@@ -1,9 +1,10 @@
import { _decorator, Component, director, instantiate, Node, Prefab } from 'cc';
import { app } from './App';
import { Env, JNGame } from '../../extensions/ngame/assets/ngame/JNGame';
import { JNGame } from '../../extensions/ngame/assets/ngame/JNGame';
import { JNSyncAction } from '../../extensions/ngame/assets/ngame/sync/JNSyncAction';
import { GOnHookPets } from '../../extensions/ngame/assets/ngame/message/proto';
import { EnvCurrent } from './Env';
import { Env, EnvCurrent } from './Env';
import { GAction } from './consts/GAction';
const { ccclass, property } = _decorator;
window['GUser'] = "100000";
@@ -34,6 +35,11 @@ export class Main extends Component {
// 创建世界
director.getScene().addChild(instantiate(this.WorldPrefab));
if(EnvCurrent == Env.Server){
//发送就绪
app.socket.Send(GAction.CR_REFEREE_READY);
}
}
}