Exemplo n.º 1
0
extern "C"  void PlayerController_OnTriggerEnter_m3392021114 (PlayerController_t2866526589 * __this, Collider_t955670625 * ___other, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (PlayerController_OnTriggerEnter_m3392021114_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	{
		Collider_t955670625 * L_0 = ___other;
		NullCheck(L_0);
		GameObject_t4012695102 * L_1 = Component_get_gameObject_m1170635899(L_0, /*hidden argument*/NULL);
		NullCheck(L_1);
		bool L_2 = GameObject_CompareTag_m3153977471(L_1, _stringLiteral2390357660, /*hidden argument*/NULL);
		if (!L_2)
		{
			goto IL_0035;
		}
	}
	{
		Collider_t955670625 * L_3 = ___other;
		NullCheck(L_3);
		GameObject_t4012695102 * L_4 = Component_get_gameObject_m1170635899(L_3, /*hidden argument*/NULL);
		NullCheck(L_4);
		GameObject_SetActive_m3538205401(L_4, (bool)0, /*hidden argument*/NULL);
		int32_t L_5 = (__this->___count_3);
		__this->___count_3 = ((int32_t)((int32_t)L_5+(int32_t)1));
		PlayerController_setCountText_m2023731392(__this, /*hidden argument*/NULL);
	}

IL_0035:
	{
		return;
	}
}
extern "C"  void MusicPlayer_Awake_m2452385352 (MusicPlayer_t2820681030 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (MusicPlayer_Awake_m2452385352_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	{
		IL2CPP_RUNTIME_CLASS_INIT(MusicPlayer_t2820681030_il2cpp_TypeInfo_var);
		MusicPlayer_t2820681030 * L_0 = ((MusicPlayer_t2820681030_StaticFields*)MusicPlayer_t2820681030_il2cpp_TypeInfo_var->static_fields)->get_instance_2();
		IL2CPP_RUNTIME_CLASS_INIT(Object_t3071478659_il2cpp_TypeInfo_var);
		bool L_1 = Object_op_Inequality_m1296218211(NULL /*static, unused*/, L_0, (Object_t3071478659 *)NULL, /*hidden argument*/NULL);
		if (!L_1)
		{
			goto IL_002a;
		}
	}
	{
		GameObject_t3674682005 * L_2 = Component_get_gameObject_m1170635899(__this, /*hidden argument*/NULL);
		IL2CPP_RUNTIME_CLASS_INIT(Object_t3071478659_il2cpp_TypeInfo_var);
		Object_Destroy_m176400816(NULL /*static, unused*/, L_2, /*hidden argument*/NULL);
		MonoBehaviour_print_m1497342762(NULL /*static, unused*/, _stringLiteral1128502332, /*hidden argument*/NULL);
		goto IL_003b;
	}

IL_002a:
	{
		IL2CPP_RUNTIME_CLASS_INIT(MusicPlayer_t2820681030_il2cpp_TypeInfo_var);
		((MusicPlayer_t2820681030_StaticFields*)MusicPlayer_t2820681030_il2cpp_TypeInfo_var->static_fields)->set_instance_2(__this);
		GameObject_t3674682005 * L_3 = Component_get_gameObject_m1170635899(__this, /*hidden argument*/NULL);
		IL2CPP_RUNTIME_CLASS_INIT(Object_t3071478659_il2cpp_TypeInfo_var);
		Object_DontDestroyOnLoad_m4064482788(NULL /*static, unused*/, L_3, /*hidden argument*/NULL);
	}

IL_003b:
	{
		return;
	}
}
extern "C"  void Blocks_HandleHits_m1868332535 (Blocks_t1992669606 * __this, const MethodInfo* method)
{
	static bool s_Il2CppMethodIntialized;
	if (!s_Il2CppMethodIntialized)
	{
		il2cpp_codegen_initialize_method (Blocks_HandleHits_m1868332535_MetadataUsageId);
		s_Il2CppMethodIntialized = true;
	}
	{
		int32_t L_0 = __this->get_timesHit_2();
		__this->set_timesHit_2(((int32_t)((int32_t)L_0+(int32_t)1)));
		int32_t L_1 = __this->get_timesHit_2();
		SpriteU5BU5D_t2761310900* L_2 = __this->get_hitSprites_6();
		if ((((int32_t)L_1) < ((int32_t)((int32_t)((int32_t)(((int32_t)((int32_t)(((Il2CppArray *)L_2)->max_length))))+(int32_t)1)))))
		{
			goto IL_0066;
		}
	}
	{
		IL2CPP_RUNTIME_CLASS_INIT(Blocks_t1992669606_il2cpp_TypeInfo_var);
		int32_t L_3 = ((Blocks_t1992669606_StaticFields*)Blocks_t1992669606_il2cpp_TypeInfo_var->static_fields)->get_breakableCount_7();
		((Blocks_t1992669606_StaticFields*)Blocks_t1992669606_il2cpp_TypeInfo_var->static_fields)->set_breakableCount_7(((int32_t)((int32_t)L_3-(int32_t)1)));
		GameObject_t3674682005 * L_4 = __this->get_smoke_9();
		Transform_t1659122786 * L_5 = Component_get_transform_m4257140443(__this, /*hidden argument*/NULL);
		Vector3_t4282066566  L_6 = Transform_get_position_m2211398607(L_5, /*hidden argument*/NULL);
		Quaternion_t1553702882  L_7 = Quaternion_get_identity_m1743882806(NULL /*static, unused*/, /*hidden argument*/NULL);
		IL2CPP_RUNTIME_CLASS_INIT(Object_t3071478659_il2cpp_TypeInfo_var);
		Object_Instantiate_m2255090103(NULL /*static, unused*/, L_4, L_6, L_7, /*hidden argument*/NULL);
		LevelManager_t2278695849 * L_8 = __this->get_levelManager_4();
		LevelManager_BrickDestroyed_m4197178762(L_8, /*hidden argument*/NULL);
		GameObject_t3674682005 * L_9 = Component_get_gameObject_m1170635899(__this, /*hidden argument*/NULL);
		Object_Destroy_m176400816(NULL /*static, unused*/, L_9, /*hidden argument*/NULL);
		goto IL_006c;
	}

IL_0066:
	{
		Blocks_LoadSprites_m3155680731(__this, /*hidden argument*/NULL);
	}

IL_006c:
	{
		return;
	}
}