示例#1
0
    void Update()
    {
        if (prevstate != MG_StateManager.state)
        {
            prevstate = MG_StateManager.state;
            SetContents(prevstate);
        }


        switch (prevstate)
        {
        case MG_StateManager.States.Ready:
            Ready();
            break;

        case MG_StateManager.States.Gameplay:
            GamePlay();
            break;

        case MG_StateManager.States.Replay:
            Replay();
            break;
        }
        SliderMat.SetFloat("_Slider", TL_TimeLineMng.ctime / TL_TimeLineMng.GetTimelim());
    }
示例#2
0
    void Start()
    {
        stateManagerref = FindObjectOfType <MG_StateManager>();
        SliderMat.SetFloat("_Slider", 0);
        T     = GetComponent <Transform>();
        Top_T = Top.GetComponent <Transform>();

        //Texts[0].text = "Start";
        prevstate = MG_StateManager.States.Ready;
        SetContents(prevstate);
    }