Пример #1
0
    private void CreatePlayer(MeshGenerator _MeshGenerator)
    {
        Vector3 _Position = _MeshGenerator.GetValidMapPosition(new Vector3(25, 1, 25), 10000);

        if (_Position != Vector3.zero)
        {
            _MeshGenerator.FlatMapInRadius(_Position, 35);
        }

        GameObject _InitialCamp = Instantiate(playerStartCamp, _Position.With(y: 0), Quaternion.identity);

        CameraControl.CenterCamera(_InitialCamp.transform.position);
    }