AssemblyCSharp.UICookingMain.PlayBackgroundSound C# (CSharp) Method

PlayBackgroundSound() public method

public PlayBackgroundSound ( ) : void
return void
        void PlayBackgroundSound()
        {
            string audioPath = null;
            switch (ComponentType) {
            case ComponentType.Dough:
                audioPath = "Audio/KneadingDough";
                break;
            case ComponentType.Sauce:
                audioPath = "Audio/BoilingSauce2";
                break;
            case ComponentType.Topping:
                audioPath = "Audio/PuttingStuffIntoPizza";
                break;

            default:
                break;
            }

            PlaySound (audioPath);
        }