extern "C"  void Paddle_AutoPlay_m2551386774 (Paddle_t2382992266 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (Paddle_AutoPlay_m2551386774_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	Vector3_t4282066566  V_0;
	memset(&V_0, 0, sizeof(V_0));
	Vector3_t4282066566  V_1;
	memset(&V_1, 0, sizeof(V_1));
	Vector3_t4282066566  V_2;
	memset(&V_2, 0, sizeof(V_2));
	{
		Transform_t1659122786 * L_0 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL);
		Transform_t1659122786 * L_1 = Component_get_transform_m4257140443(L_0, /*hidden argument*/NULL);
		Vector3_t4282066566  L_2 = Transform_get_position_m2211398607(L_1, /*hidden argument*/NULL);
		V_2 = L_2;
		float L_3 = (&V_2)->get_y_2();
		Vector3__ctor_m2926210380((&V_0), (0.0f), L_3, (0.0f), /*hidden argument*/NULL);
		Ball_t2062879 * L_4 = __this->get_ball_4();
		Transform_t1659122786 * L_5 = Component_get_transform_m4257140443(L_4, /*hidden argument*/NULL);
		Vector3_t4282066566  L_6 = Transform_get_position_m2211398607(L_5, /*hidden argument*/NULL);
		V_1 = L_6;
		float L_7 = (&V_1)->get_x_1();
		IL2CPP_RUNTIME_CLASS_INIT(Mathf_t4203372500_il2cpp_TypeInfo_var);
		float L_8 = Mathf_Clamp_m3872743893(NULL /*static, unused*/, L_7, (-8.0f), (8.0f), /*hidden argument*/NULL);
		(&V_0)->set_x_1(L_8);
		Transform_t1659122786 * L_9 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL);
		Vector3_t4282066566  L_10 = V_0;
		Transform_set_position_m3111394108(L_9, L_10, /*hidden argument*/NULL);
		return;
	}
}
Пример #2
0
extern "C"  void PlayerController_FixedUpdate_m270852281 (PlayerController_t2866526589 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (PlayerController_FixedUpdate_m270852281_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	float V_0 = 0.0f;
	float V_1 = 0.0f;
	Vector3_t3525329789  V_2 = {0};
	{
		IL2CPP_RUNTIME_CLASS_INIT(Input_t1593691127_il2cpp_TypeInfo_var);
		float L_0 = Input_GetAxis_m2027668530(NULL /*static, unused*/, _stringLiteral3381094468, /*hidden argument*/NULL);
		V_0 = L_0;
		float L_1 = Input_GetAxis_m2027668530(NULL /*static, unused*/, _stringLiteral2375469974, /*hidden argument*/NULL);
		V_1 = L_1;
		float L_2 = V_0;
		float L_3 = V_1;
		Vector3__ctor_m2926210380((&V_2), L_2, (0.0f), L_3, /*hidden argument*/NULL);
		Rigidbody_t1972007546 * L_4 = (__this->___rb_2);
		Vector3_t3525329789  L_5 = V_2;
		float L_6 = (__this->___speed_4);
		Vector3_t3525329789  L_7 = Vector3_op_Multiply_m973638459(NULL /*static, unused*/, L_5, L_6, /*hidden argument*/NULL);
		NullCheck(L_4);
		Rigidbody_AddForce_m3682301239(L_4, L_7, /*hidden argument*/NULL);
		return;
	}
}
Пример #3
0
// System.Void Rotator::Update()
extern "C"  void Rotator_Update_m2722475087 (Rotator_t3048826765 * __this, const MethodInfo* method)
{
	{
		Transform_t284553113 * L_0 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL);
		Vector3_t3525329789  L_1 = {0};
		Vector3__ctor_m2926210380(&L_1, (15.0f), (30.0f), (45.0f), /*hidden argument*/NULL);
		float L_2 = Time_get_deltaTime_m2741110510(NULL /*static, unused*/, /*hidden argument*/NULL);
		Vector3_t3525329789  L_3 = Vector3_op_Multiply_m973638459(NULL /*static, unused*/, L_1, L_2, /*hidden argument*/NULL);
		NullCheck(L_0);
		Transform_Rotate_m637363399(L_0, L_3, /*hidden argument*/NULL);
		return;
	}
}
extern "C"  void Paddle_MoveWithMouse_m571479709 (Paddle_t2382992266 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (Paddle_MoveWithMouse_m571479709_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	Vector3_t4282066566  V_0;
	memset(&V_0, 0, sizeof(V_0));
	Vector3_t4282066566  V_1;
	memset(&V_1, 0, sizeof(V_1));
	Vector3_t4282066566  V_2;
	memset(&V_2, 0, sizeof(V_2));
	{
		IL2CPP_RUNTIME_CLASS_INIT(Input_t4200062272_il2cpp_TypeInfo_var);
		Vector3_t4282066566  L_0 = Input_get_mousePosition_m4020233228(NULL /*static, unused*/, /*hidden argument*/NULL);
		V_1 = L_0;
		float L_1 = (&V_1)->get_x_1();
		int32_t L_2 = Screen_get_width_m3080333084(NULL /*static, unused*/, /*hidden argument*/NULL);
		__this->set_xPosition_2(((float)((float)((float)((float)L_1/(float)(((float)((float)L_2)))))*(float)(16.0f))));
		float L_3 = __this->get_xPosition_2();
		float L_4 = __this->get_minX_5();
		float L_5 = __this->get_maxX_6();
		IL2CPP_RUNTIME_CLASS_INIT(Mathf_t4203372500_il2cpp_TypeInfo_var);
		float L_6 = Mathf_Clamp_m3872743893(NULL /*static, unused*/, L_3, L_4, L_5, /*hidden argument*/NULL);
		Transform_t1659122786 * L_7 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL);
		Transform_t1659122786 * L_8 = Component_get_transform_m4257140443(L_7, /*hidden argument*/NULL);
		Vector3_t4282066566  L_9 = Transform_get_position_m2211398607(L_8, /*hidden argument*/NULL);
		V_2 = L_9;
		float L_10 = (&V_2)->get_y_2();
		Vector3__ctor_m2926210380((&V_0), L_6, L_10, (0.0f), /*hidden argument*/NULL);
		Transform_t1659122786 * L_11 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL);
		Vector3_t4282066566  L_12 = V_0;
		Transform_set_position_m3111394108(L_11, L_12, /*hidden argument*/NULL);
		return;
	}
}
extern "C"  void Ball_onCollisionEnter2D_m2284112358 (Ball_t2062879 * __this, Collision2D_t2859305914 * ___collision0, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (Ball_onCollisionEnter2D_m2284112358_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	Vector3_t4282066566  V_0;
	memset(&V_0, 0, sizeof(V_0));
	{
		float L_0 = Random_Range_m3362417303(NULL /*static, unused*/, (0.0f), (0.2f), /*hidden argument*/NULL);
		float L_1 = Random_Range_m3362417303(NULL /*static, unused*/, (0.0f), (0.2f), /*hidden argument*/NULL);
		Vector3__ctor_m2926210380((&V_0), L_0, L_1, (0.0f), /*hidden argument*/NULL);
		bool L_2 = __this->get_hasStarted_3();
		if (!L_2)
		{
			goto IL_0057;
		}
	}
	{
		AudioSource_t1740077639 * L_3 = Component_GetComponent_TisAudioSource_t1740077639_m3821406207(__this, /*hidden argument*/Component_GetComponent_TisAudioSource_t1740077639_m3821406207_MethodInfo_var);
		AudioSource_Play_m1360558992(L_3, /*hidden argument*/NULL);
		Rigidbody_t3346577219 * L_4 = Component_GetComponent_TisRigidbody_t3346577219_m2174365699(__this, /*hidden argument*/Component_GetComponent_TisRigidbody_t3346577219_m2174365699_MethodInfo_var);
		Rigidbody_t3346577219 * L_5 = L_4;
		Vector3_t4282066566  L_6 = Rigidbody_get_velocity_m2696244068(L_5, /*hidden argument*/NULL);
		Vector3_t4282066566  L_7 = V_0;
		Vector3_t4282066566  L_8 = Vector3_op_Addition_m695438225(NULL /*static, unused*/, L_6, L_7, /*hidden argument*/NULL);
		Rigidbody_set_velocity_m799562119(L_5, L_8, /*hidden argument*/NULL);
	}

IL_0057:
	{
		return;
	}
}