extern "C" Vector2_t3525329788 BenchmarkTest_getScreenSize_m1573587288 (BenchmarkTest_t1141318415 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { il2cpp_codegen_initialize_method (BenchmarkTest_getScreenSize_m1573587288_MetadataUsageId); s_Il2CppMethodIntialized = true; } Camera_t3533968274 * V_0 = NULL; float V_1 = 0.0f; float V_2 = 0.0f; { Camera_t3533968274 * L_0 = Camera_get_main_m671815697(NULL /*static, unused*/, /*hidden argument*/NULL); NullCheck(L_0); Camera_t3533968274 * L_1 = Component_GetComponent_TisCamera_t3533968274_m1005433449(L_0, /*hidden argument*/Component_GetComponent_TisCamera_t3533968274_m1005433449_MethodInfo_var); V_0 = L_1; int32_t L_2 = Screen_get_width_m3080333084(NULL /*static, unused*/, /*hidden argument*/NULL); float L_3 = BenchmarkTest_pixelToWorld_m4143337598(__this, (((float)((float)L_2))), /*hidden argument*/NULL); V_1 = L_3; int32_t L_4 = Screen_get_height_m1504859443(NULL /*static, unused*/, /*hidden argument*/NULL); float L_5 = BenchmarkTest_pixelToWorld_m4143337598(__this, (((float)((float)L_4))), /*hidden argument*/NULL); V_2 = L_5; float L_6 = V_1; float L_7 = V_2; Vector2_t3525329788 L_8; memset(&L_8, 0, sizeof(L_8)); Vector2__ctor_m1517109030(&L_8, L_6, L_7, /*hidden argument*/NULL); return L_8; } }
extern "C" void Ball_Update_m3282058033 (Ball_t2062879 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { il2cpp_codegen_initialize_method (Ball_Update_m3282058033_MetadataUsageId); s_Il2CppMethodIntialized = true; } { bool L_0 = __this->get_hasStarted_3(); if (L_0) { goto IL_005d; } } { Transform_t1659122786 * L_1 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL); Paddle_t2382992266 * L_2 = __this->get_paddle_2(); Transform_t1659122786 * L_3 = Component_get_transform_m4257140443(L_2, /*hidden argument*/NULL); Vector3_t4282066566 L_4 = Transform_get_position_m2211398607(L_3, /*hidden argument*/NULL); Vector3_t4282066566 L_5 = __this->get_paddleToBallVector_4(); Vector3_t4282066566 L_6 = Vector3_op_Addition_m695438225(NULL /*static, unused*/, L_4, L_5, /*hidden argument*/NULL); Transform_set_position_m3111394108(L_1, L_6, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(Input_t4200062272_il2cpp_TypeInfo_var); bool L_7 = Input_GetMouseButtonDown_m2031691843(NULL /*static, unused*/, 0, /*hidden argument*/NULL); if (!L_7) { goto IL_005d; } } { __this->set_hasStarted_3((bool)1); Rigidbody2D_t1743771669 * L_8 = Component_GetComponent_TisRigidbody2D_t1743771669_m2201104241(__this, /*hidden argument*/Component_GetComponent_TisRigidbody2D_t1743771669_m2201104241_MethodInfo_var); Vector2_t4282066565 L_9; memset(&L_9, 0, sizeof(L_9)); Vector2__ctor_m1517109030(&L_9, (2.0f), (10.0f), /*hidden argument*/NULL); Rigidbody2D_set_velocity_m100625302(L_8, L_9, /*hidden argument*/NULL); } IL_005d: { return; } }
extern "C" void BenchmarkTest_more100Bunny_m3251253586 (BenchmarkTest_t1141318415 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { il2cpp_codegen_initialize_method (BenchmarkTest_more100Bunny_m3251253586_MetadataUsageId); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; BunnyObj_t3074558385 * V_1 = NULL; { V_0 = 0; goto IL_00af; } IL_0007: { BunnyObj_t3074558385 * L_0 = (BunnyObj_t3074558385 *)il2cpp_codegen_object_new(BunnyObj_t3074558385_il2cpp_TypeInfo_var); BunnyObj__ctor_m3611298826(L_0, /*hidden argument*/NULL); V_1 = L_0; BunnyObj_t3074558385 * L_1 = V_1; GameObject_t4012695102 * L_2 = __this->get_bunny_7(); GameObject_t4012695102 * L_3 = Object_Instantiate_TisGameObject_t4012695102_m2622475422(NULL /*static, unused*/, L_2, /*hidden argument*/Object_Instantiate_TisGameObject_t4012695102_m2622475422_MethodInfo_var); NullCheck(L_1); L_1->set_bunny_2(L_3); BunnyObj_t3074558385 * L_4 = V_1; NullCheck(L_4); GameObject_t4012695102 * L_5 = L_4->get_bunny_2(); NullCheck(L_5); Transform_t284553113 * L_6 = GameObject_get_transform_m1278640159(L_5, /*hidden argument*/NULL); float L_7 = __this->get_minX_3(); float L_8 = __this->get_maxX_5(); float L_9 = Random_Range_m3362417303(NULL /*static, unused*/, L_7, L_8, /*hidden argument*/NULL); float L_10 = __this->get_minY_4(); float L_11 = __this->get_maxY_6(); float L_12 = Random_Range_m3362417303(NULL /*static, unused*/, L_10, L_11, /*hidden argument*/NULL); Vector2_t3525329788 L_13; memset(&L_13, 0, sizeof(L_13)); Vector2__ctor_m1517109030(&L_13, L_9, L_12, /*hidden argument*/NULL); Vector3_t3525329789 L_14 = Vector2_op_Implicit_m482286037(NULL /*static, unused*/, L_13, /*hidden argument*/NULL); NullCheck(L_6); Transform_set_position_m3111394108(L_6, L_14, /*hidden argument*/NULL); float L_15 = __this->get_minX_3(); float L_16 = __this->get_maxX_5(); float L_17 = Random_Range_m3362417303(NULL /*static, unused*/, L_15, L_16, /*hidden argument*/NULL); float L_18 = L_17; Il2CppObject * L_19 = Box(Single_t958209021_il2cpp_TypeInfo_var, &L_18); IL2CPP_RUNTIME_CLASS_INIT(Debug_t1588791936_il2cpp_TypeInfo_var); Debug_Log_m1731103628(NULL /*static, unused*/, L_19, /*hidden argument*/NULL); BunnyObj_t3074558385 * L_20 = V_1; float L_21 = Random_Range_m3362417303(NULL /*static, unused*/, (-0.1f), (0.1f), /*hidden argument*/NULL); NullCheck(L_20); BunnyObj_set_vx_m880187570(L_20, L_21, /*hidden argument*/NULL); BunnyObj_t3074558385 * L_22 = V_1; float L_23 = Random_Range_m3362417303(NULL /*static, unused*/, (-0.1f), (0.1f), /*hidden argument*/NULL); NullCheck(L_22); BunnyObj_set_vy_m369653393(L_22, L_23, /*hidden argument*/NULL); List_1_t3871517354 * L_24 = __this->get_allOfBunnyObjects_2(); BunnyObj_t3074558385 * L_25 = V_1; NullCheck(L_24); VirtActionInvoker1< BunnyObj_t3074558385 * >::Invoke(19 /* System.Void System.Collections.Generic.List`1<BunnyObj>::Add(!0) */, L_24, L_25); int32_t L_26 = V_0; V_0 = ((int32_t)((int32_t)L_26+(int32_t)1)); } IL_00af: { int32_t L_27 = V_0; if ((((int32_t)L_27) < ((int32_t)((int32_t)100)))) { goto IL_0007; } } { return; } }
extern "C" void BenchmarkTest_Update_m2090695505 (BenchmarkTest_t1141318415 * __this, const MethodInfo* method) { static bool s_Il2CppMethodIntialized; if (!s_Il2CppMethodIntialized) { il2cpp_codegen_initialize_method (BenchmarkTest_Update_m2090695505_MetadataUsageId); s_Il2CppMethodIntialized = true; } int32_t V_0 = 0; BunnyObj_t3074558385 * V_1 = NULL; float V_2 = 0.0f; float V_3 = 0.0f; int32_t V_4 = 0; Vector3_t3525329789 V_5; memset(&V_5, 0, sizeof(V_5)); Vector3_t3525329789 V_6; memset(&V_6, 0, sizeof(V_6)); Vector3_t3525329789 V_7; memset(&V_7, 0, sizeof(V_7)); Vector3_t3525329789 V_8; memset(&V_8, 0, sizeof(V_8)); Touch_t1603883884 V_9; memset(&V_9, 0, sizeof(V_9)); { V_0 = 0; goto IL_00fe; } IL_0007: { List_1_t3871517354 * L_0 = __this->get_allOfBunnyObjects_2(); int32_t L_1 = V_0; NullCheck(L_0); BunnyObj_t3074558385 * L_2 = VirtFuncInvoker1< BunnyObj_t3074558385 *, int32_t >::Invoke(28 /* !0 System.Collections.Generic.List`1<BunnyObj>::get_Item(System.Int32) */, L_0, L_1); V_1 = L_2; BunnyObj_t3074558385 * L_3 = V_1; NullCheck(L_3); GameObject_t4012695102 * L_4 = L_3->get_bunny_2(); NullCheck(L_4); Transform_t284553113 * L_5 = GameObject_get_transform_m1278640159(L_4, /*hidden argument*/NULL); NullCheck(L_5); Vector3_t3525329789 L_6 = Transform_get_position_m2211398607(L_5, /*hidden argument*/NULL); V_5 = L_6; float L_7 = (&V_5)->get_x_0(); BunnyObj_t3074558385 * L_8 = V_1; NullCheck(L_8); float L_9 = BunnyObj_get_vx_m3630199025(L_8, /*hidden argument*/NULL); V_2 = ((float)((float)L_7+(float)L_9)); BunnyObj_t3074558385 * L_10 = V_1; NullCheck(L_10); GameObject_t4012695102 * L_11 = L_10->get_bunny_2(); NullCheck(L_11); Transform_t284553113 * L_12 = GameObject_get_transform_m1278640159(L_11, /*hidden argument*/NULL); NullCheck(L_12); Vector3_t3525329789 L_13 = Transform_get_position_m2211398607(L_12, /*hidden argument*/NULL); V_6 = L_13; float L_14 = (&V_6)->get_y_1(); BunnyObj_t3074558385 * L_15 = V_1; NullCheck(L_15); float L_16 = BunnyObj_get_vy_m3630199986(L_15, /*hidden argument*/NULL); V_3 = ((float)((float)L_14+(float)L_16)); float L_17 = V_2; float L_18 = __this->get_minX_3(); if ((((float)L_17) < ((float)L_18))) { goto IL_006e; } } { float L_19 = V_2; float L_20 = __this->get_maxX_5(); if ((!(((float)L_19) > ((float)L_20)))) { goto IL_007b; } } IL_006e: { BunnyObj_t3074558385 * L_21 = V_1; BunnyObj_t3074558385 * L_22 = V_1; NullCheck(L_22); float L_23 = BunnyObj_get_vx_m3630199025(L_22, /*hidden argument*/NULL); NullCheck(L_21); BunnyObj_set_vx_m880187570(L_21, ((-L_23)), /*hidden argument*/NULL); } IL_007b: { float L_24 = V_3; float L_25 = __this->get_minY_4(); if ((((float)L_24) < ((float)L_25))) { goto IL_0093; } } { float L_26 = V_3; float L_27 = __this->get_maxY_6(); if ((!(((float)L_26) > ((float)L_27)))) { goto IL_00a0; } } IL_0093: { BunnyObj_t3074558385 * L_28 = V_1; BunnyObj_t3074558385 * L_29 = V_1; NullCheck(L_29); float L_30 = BunnyObj_get_vy_m3630199986(L_29, /*hidden argument*/NULL); NullCheck(L_28); BunnyObj_set_vy_m369653393(L_28, ((-L_30)), /*hidden argument*/NULL); } IL_00a0: { BunnyObj_t3074558385 * L_31 = V_1; NullCheck(L_31); GameObject_t4012695102 * L_32 = L_31->get_bunny_2(); NullCheck(L_32); Transform_t284553113 * L_33 = GameObject_get_transform_m1278640159(L_32, /*hidden argument*/NULL); BunnyObj_t3074558385 * L_34 = V_1; NullCheck(L_34); GameObject_t4012695102 * L_35 = L_34->get_bunny_2(); NullCheck(L_35); Transform_t284553113 * L_36 = GameObject_get_transform_m1278640159(L_35, /*hidden argument*/NULL); NullCheck(L_36); Vector3_t3525329789 L_37 = Transform_get_position_m2211398607(L_36, /*hidden argument*/NULL); V_7 = L_37; float L_38 = (&V_7)->get_x_0(); BunnyObj_t3074558385 * L_39 = V_1; NullCheck(L_39); float L_40 = BunnyObj_get_vx_m3630199025(L_39, /*hidden argument*/NULL); BunnyObj_t3074558385 * L_41 = V_1; NullCheck(L_41); GameObject_t4012695102 * L_42 = L_41->get_bunny_2(); NullCheck(L_42); Transform_t284553113 * L_43 = GameObject_get_transform_m1278640159(L_42, /*hidden argument*/NULL); NullCheck(L_43); Vector3_t3525329789 L_44 = Transform_get_position_m2211398607(L_43, /*hidden argument*/NULL); V_8 = L_44; float L_45 = (&V_8)->get_y_1(); BunnyObj_t3074558385 * L_46 = V_1; NullCheck(L_46); float L_47 = BunnyObj_get_vy_m3630199986(L_46, /*hidden argument*/NULL); Vector2_t3525329788 L_48; memset(&L_48, 0, sizeof(L_48)); Vector2__ctor_m1517109030(&L_48, ((float)((float)L_38+(float)L_40)), ((float)((float)L_45+(float)L_47)), /*hidden argument*/NULL); Vector3_t3525329789 L_49 = Vector2_op_Implicit_m482286037(NULL /*static, unused*/, L_48, /*hidden argument*/NULL); NullCheck(L_33); Transform_set_position_m3111394108(L_33, L_49, /*hidden argument*/NULL); int32_t L_50 = V_0; V_0 = ((int32_t)((int32_t)L_50+(int32_t)1)); } IL_00fe: { int32_t L_51 = V_0; List_1_t3871517354 * L_52 = __this->get_allOfBunnyObjects_2(); NullCheck(L_52); int32_t L_53 = VirtFuncInvoker0< int32_t >::Invoke(17 /* System.Int32 System.Collections.Generic.List`1<BunnyObj>::get_Count() */, L_52); if ((((int32_t)L_51) < ((int32_t)L_53))) { goto IL_0007; } } { V_4 = 0; goto IL_0139; } IL_0117: { int32_t L_54 = V_4; IL2CPP_RUNTIME_CLASS_INIT(Input_t1593691127_il2cpp_TypeInfo_var); Touch_t1603883884 L_55 = Input_GetTouch_m2282421092(NULL /*static, unused*/, L_54, /*hidden argument*/NULL); V_9 = L_55; int32_t L_56 = Touch_get_phase_m3314549414((&V_9), /*hidden argument*/NULL); if ((!(((uint32_t)L_56) == ((uint32_t)3)))) { goto IL_0133; } } { BenchmarkTest_more100Bunny_m3251253586(__this, /*hidden argument*/NULL); } IL_0133: { int32_t L_57 = V_4; V_4 = ((int32_t)((int32_t)L_57+(int32_t)1)); } IL_0139: { int32_t L_58 = V_4; IL2CPP_RUNTIME_CLASS_INIT(Input_t1593691127_il2cpp_TypeInfo_var); int32_t L_59 = Input_get_touchCount_m1430909390(NULL /*static, unused*/, /*hidden argument*/NULL); if ((((int32_t)L_58) < ((int32_t)L_59))) { goto IL_0117; } } { return; } }