public void SpawnChoasFruit(float p_delay) { mg_ss_EItemTypes mg_ss_EItemTypes2 = CalculateRandomFruit(); if (mg_ss_EItemTypes2 != mg_ss_EItemTypes.NULL) { mg_ss_ItemMovement_Bounce p_movement = new mg_ss_ItemMovement_Bounce(mg_ss_ItemObject.CalculateRandomBounceVelocity()); m_gameLogic.ItemManager.SpawnItem(mg_ss_EItemTypes2, p_movement, p_delay, p_chaosItem: true); } }
private void SpawnItem_Bounce(mg_ss_EItemTypes p_itemType, float p_delay, float p_velocity) { mg_ss_ItemMovement_Bounce p_movement = new mg_ss_ItemMovement_Bounce(p_velocity); m_gameLogic.ItemManager.SpawnItem(p_itemType, p_movement, p_delay); }