Exemplo n.º 1
0
    // Token: 0x06000676 RID: 1654 RVA: 0x00039D7C File Offset: 0x00037F7C
    public static void gmGmkTruckBodyDefFunc(AppMain.OBS_RECT_WORK mine_rect, AppMain.OBS_RECT_WORK match_rect)
    {
        AppMain.GMS_ENEMY_COM_WORK gms_ENEMY_COM_WORK = (AppMain.GMS_ENEMY_COM_WORK)mine_rect.parent_obj;
        GMS_PLAYER_WORK            gms_PLAYER_WORK    = (GMS_PLAYER_WORK)match_rect.parent_obj;

        if (gms_ENEMY_COM_WORK == null)
        {
            return;
        }
        if (gms_PLAYER_WORK == null || gms_PLAYER_WORK.obj_work.obj_type != 1)
        {
            return;
        }
        AppMain.GMS_GMK_TRUCK_WORK gms_GMK_TRUCK_WORK = (AppMain.GMS_GMK_TRUCK_WORK)gms_ENEMY_COM_WORK;
        gms_ENEMY_COM_WORK.obj_work.flag |= 16U;
        GmPlayer.SetTruckRide(gms_PLAYER_WORK, gms_ENEMY_COM_WORK.obj_work, gms_ENEMY_COM_WORK.obj_work.field_rect[0], gms_ENEMY_COM_WORK.obj_work.field_rect[1], gms_ENEMY_COM_WORK.obj_work.field_rect[2], gms_ENEMY_COM_WORK.obj_work.field_rect[3]);
        gms_GMK_TRUCK_WORK.target_player = gms_PLAYER_WORK;
        AppMain.gmGmkTruckInitMain(gms_ENEMY_COM_WORK.obj_work, gms_PLAYER_WORK);
    }