示例#1
0
    // Update is called once per frame
    void FixedUpdate()
    {
        if (Move)
        {
            FuncMove(true);       // First Level Mode (true)
        }
        if (MoveToNext)
        {
            FuncMove(false);             // First Level Mode (false - Second Mode)
        }
        else if (GameOverMove)
        {
            EndMove();
        }

        if (!end)
        {
            if (distance >= DistanceToFirstCircle + (DistanceBetween * (_Spawn.GetCirclesCount() - 1)))
            {
                GameOver(true);   // Win?
            }

            TimerFunk();
        }
    }