Exemplo n.º 1
0
    // Token: 0x06000B2B RID: 2859 RVA: 0x00064C88 File Offset: 0x00062E88
    private static void gmGmkSplRingDefFunc(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;
        }
        if ((gms_PLAYER_WORK.player_flag & 262144U) != 0U)
        {
            GmPlayer.SetEndTruckRide(gms_PLAYER_WORK);
        }
        AppMain.GmPlySeqInitSplIn(gms_PLAYER_WORK, gms_ENEMY_COM_WORK.obj_work.pos);
        gms_PLAYER_WORK.gmk_flag2 |= 6U;
        (( OBS_OBJECT_WORK )gms_ENEMY_COM_WORK).ppFunc = AppMain.gmGmkSplRingVanishReady;
        gms_ENEMY_COM_WORK.obj_work.dir.y = ( ushort )((gms_ENEMY_COM_WORK.obj_work.dir.y & 57344));
        gms_ENEMY_COM_WORK.obj_work.flag |= 2U;
        AppMain.GMM_PAD_VIB_SMALL();
        GmSound.PlaySE("Special1");
    }