protected override void onExit(SceneProcedure nextProcedure)
    {
        LT.HIDE_LAYOUT(LAYOUT_ILR.GAMING);
        CommandCharacterManagerDestroy cmd = newMainCmd(out cmd);

        cmd.mGUID = mPlayer.getGUID();
        pushCommand(cmd, mCharacterManager);
    }
Example #2
0
 // 销毁所有比赛角色
 public void destroyAllPlayer()
 {
     foreach (var item in mPlayerList)
     {
         CommandCharacterManagerDestroy cmd = newCmd(out cmd);
         cmd.mName = item.Value.getName();
         pushCommand(cmd, mCharacterManager);
     }
     mPlayerList.Clear();
 }
Example #3
0
    public override void execute()
    {
        Room room = mReceiver as Room;

        room.notifyPlayerLeave(mCharacter);
        // 通知界面
        mScriptAllCharacterInfo.notifyCharacterLeave(mCharacter);
        // 通知玩家已经离开房间
        pushCommand <CommandCharacterNotifyLeave>(mCharacter);
        // 如果不是玩家自己,则需要销毁玩家
        if (mCharacter.getType() != CHARACTER_TYPE.CT_MYSELF)
        {
            CommandCharacterManagerDestroy cmd = newCmd(out cmd);
            cmd.mGUID = mCharacter.getCharacterData().mGUID;
            pushCommand(cmd, mCharacterManager);
        }
    }
Example #4
0
    public override void execute()
    {
        Room room = mReceiver as Room;

        room.notifyPlayerLeave(mCharacter);
        // 通知界面
        ScriptAllCharacterInfo allInfo = mLayoutManager.getScript(LAYOUT_TYPE.LT_ALL_CHARACTER_INFO) as ScriptAllCharacterInfo;

        allInfo.notifyCharacterLeave(mCharacter);
        // 通知玩家已经离开房间
        CommandCharacterNotifyLeave cmdLeave = mCommandSystem.newCmd <CommandCharacterNotifyLeave>();

        mCommandSystem.pushCommand(cmdLeave, mCharacter);
        // 如果不是玩家自己,则需要销毁玩家
        if (mCharacter.getType() != CHARACTER_TYPE.CT_MYSELF)
        {
            CommandCharacterManagerDestroy cmd = mCommandSystem.newCmd <CommandCharacterManagerDestroy>();
            cmd.mGUID = mCharacter.getCharacterData().mGUID;
            mCommandSystem.pushCommand(cmd, mCharacterManager);
        }
    }