예제 #1
0
파일: GameManager.cs 프로젝트: Chikanut/PR
    void Update()
    {
        if (CurrentState != GameState.game)
        {
            return;
        }

        _distance = _player.transform.position.z - _startPos.z;

        _levelSpawner.OnDistanceChanged(_distance);
    }