public void Initialize(mg_pt_GameScreen p_screen, mg_pt_ConveyorSpeedData p_speedData) { m_speedData = p_speedData; State = mg_pt_EConveyorState.STOPPED; m_nextState = mg_pt_EConveyorState.RUNNING; m_conveyorObject = p_screen.ConveyorObject; m_currentTier = 0; m_sequentialFails = 0; UpdateTier(); NextState(); PlaySFX(); }
private void LoadSharedAssets() { LoadComplexityData(); ConveyorSpeedData = new mg_pt_ConveyorSpeedData("Pizzatron/mg_pt_conveyor_speed_data"); LoadResource("Pizzatron/mg_pt_pf_game", mg_pt_EResourceList.GAME_GENERIC); LoadResource("Pizzatron/mg_pt_pf_customer_default", mg_pt_EResourceList.GAME_CUSTOMER_DEFAULT); LoadResource("Pizzatron/mg_pt_pf_customer_gary", mg_pt_EResourceList.GAME_CUSTOMER_GARY); LoadResource("Pizzatron/mg_pt_pf_customer_rockhopper", mg_pt_EResourceList.GAME_CUSTOMER_ROCKHOPPER); LoadResource("Pizzatron/mg_pt_pf_customer_sensei", mg_pt_EResourceList.GAME_CUSTOMER_SENSEI); LoadResource("Pizzatron/mg_pt_Coin", mg_pt_EResourceList.GAME_COIN); LoadResource("Pizzatron/mg_pt_pf_GameSounds", mg_pt_EResourceList.GAME_GENERIC_SOUNDS); LoadResource("Pizzatron/mg_pt_pf_GameSounds_Single", mg_pt_EResourceList.GAME_GENERIC_SOUNDS_SINGLE); LoadSharedSounds(); m_areSharedAssetsLoaded = true; }