private void SetPassedQuest(Machine.MachineType machineType)
        {
            switch (machineType)
            {
            case Machine.MachineType.PotatoWasher:
                KitchenSubTutorial.StrikeThroughText(_washText);
                _washed.Invoke();
                break;

            case Machine.MachineType.PotatoPeeler:
                KitchenSubTutorial.StrikeThroughText(_peelText);
                _peeled.Invoke();
                break;

            case Machine.MachineType.FryPacker:
                KitchenSubTutorial.StrikeThroughText(_packText);
                _cutt.Invoke();
                break;

            case Machine.MachineType.FryCutter:
                KitchenSubTutorial.StrikeThroughText(_cutText);
                _packed.Invoke();
                break;
            }
        }
Esempio n. 2
0
    private void SoundItemEnteredMachine(Machine.MachineType machineType, GameObject o)
    {
        switch (machineType)
        {
        case Machine.MachineType.PotatoWasher:
            SoundWashing();
            break;

        case Machine.MachineType.PotatoPeeler:
            SoundPeeling();
            break;

        case Machine.MachineType.FryPacker:
            SoundPacking();
            break;

        case Machine.MachineType.FryCutter:
            SoundChopping();
            break;
        }
    }
Esempio n. 3
0
    private void SoundItemLeftMachine(Machine.MachineType machineType)
    {
        switch (machineType)
        {
        case Machine.MachineType.PotatoWasher:
            SoundComingOut();
            break;

        case Machine.MachineType.PotatoPeeler:
            SoundComingOut();
            break;

        case Machine.MachineType.FryPacker:
            SoundComingOut();
            break;

        case Machine.MachineType.FryCutter:
            SoundComingOut();
            break;
        }
    }