Ejemplo n.º 1
0
    void Awake()
    {
        Debug.Assert(Instance == null);
        Instance = this;

        State        = SceneState.Ready;
        TimeCtrl     = new TimeCtrl();
        SlideCounter = new SlideCounter();

        Instantiate(ResourcesManager.CountDownCanvas);
    }
Ejemplo n.º 2
0
    void Update()
    {
        if (State != SceneState.Main)
        {
            return;
        }

        if (Input.GetKeyDown("space"))
        {
            if (TimeCtrl.IsStop)
            {
                TimeCtrl.Play();
            }
            else
            {
                TimeCtrl.Stop();
            }
        }

        SlideCounter.Update();
    }