コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        UpdateController();
        if (EnActive && !Input.GetKeyDown(KeyCode.Escape))
        {
            return;
        }


        if (ReachTerminal)
        {
            return;
        }

        if (Pass)
        {
            trainManager.Pass = Pass;
            trainManager.Accelerate();
            trainManager.Move();
            return;
        }


        GetKeyInput();
        Preview();

        if (TrainMove)
        {
            trainManager.Move();
        }
    }