Пример #1
0
    void Update()
    {
        //TUTORIAL
        //Game Starts (Fade In)

        if (tutorial)
        {
            //Player Reads Note
            //Turn Lights On
            if (!player.holdNote)
            {
                Task t1 = tmanager.NewTask("Read the Note");
                player.holdNote = true;
            }
            if (player.readNote)
            {
                tmanager.RemoveTask("Read the Note");
                Task t2 = tmanager.NewTask("Turn On the Lights");
                phaseEnd        = true;
                player.readNote = false;
            }
            if (phaseEnd && breaker.AreLightsOn())
            {
                tmanager.RemoveTask("Turn On the Lights");
                tutorial = false;
                mainten  = true;
            }
        }
        else if (mainten)
        {
            StartCoroutine(MaintenancePhase());
            mainten = false;
        }

        //if ink calledDispatch, then put timer up on big screen
    }