mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-11-10 08:16:10 +00:00
完美
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user