示例#1
0
    //-------------------------------------------------------------------------
    void _hitFish(CRenderFish render_fish)
    {
        if (mRenderFishID.Contains(render_fish.FishObjId))
        {
            return;
        }

        mMaxHitFish--;

        addFishList(render_fish);

        if (!render_fish.canHitByFishNet())
        {
            return;
        }

        if (mScene.getMyPlayerId() == mPlayerId)
        {
            List <string> vec_param = new List <string>();
            vec_param.Add("playerFishNetHit");
            vec_param.Add(mPlayerId.ToString());
            vec_param.Add(render_fish.FishObjId.ToString());
            mScene.getListener().onSceneRender2Logic(vec_param);
        }
    }