Example #1
0
    void Update()
    {
        timeKeeper.CountDown();

        if (timeKeeper.Finished("start") && !timeKeeper.Finished("game"))
        {
            DisplayTime();
            if (ship.Locations[character.LocationID].IsRepaired())
            {
                timeKeeper.Stop("oxygen");
            }
            else
            {
                timeKeeper.Resume("oxygen");
            }
        }

        //RunEvents();
        notifier.Notify();
        character.Breath();
        ship.UpdateShields();
        CheckAction();
        PerformActions();
    }