Exemple #1
0
    private IEnumerator BackgroundStartCoroutine()
    {
        while (transform.position.y > maxStartPosY)
        {
            transform.position = Vector3.MoveTowards(transform.position, transform.position + Vector3.down, DifficultyManager.GetMovementSpeed());
            yield return(new WaitForFixedUpdate());
        }

        seamlessBg.Setup(this);
        canMove = true;
    }