Example #1
0
    private void OnApplicationPause(bool pause)
    {
        BattleManager mgr = BattleManager.GetInst();

        if (mgr != null && mgr.IsBattleRun && pause)
        {
            BattleManager.GetInst().DisableHero(PlayerData.PlayerId);
            CommonCommand.ExecuteLongBattle(Client2ServerList.GetInst().C2S_BATTLE_HERO_FAILED, new ArrayList()
            {
                PlayerData.PlayerId
            });
        }
    }
Example #2
0
    public void OnPlatformLogin()
    {
        _loginParam = new ArrayList()
        {
            ApplicationConst.PlatformID,
            ApplicationConst.ChannelID,
            DeviceInfo.GetDeviceInfo(),
            System.Guid.NewGuid().ToString(),
            SystemInfo.deviceUniqueIdentifier,
            PlayerData.Account,
            PlayerData.Token
        };

        CommonCommand.ExecuteLongMain(Client2ServerList.GetInst().C2S_LOGIN_LONG, _loginParam);
    }