示例#1
0
        public void Start()
        {
            if (_world == null)
            {
                _world = GetComponent <CubizerBehaviour>();
            }

            if (_world == null)
            {
                Debug.LogError("Please assign a server on the inspector.");
            }

            if (_player == null)
            {
                Debug.LogError("Please assign a camera on the inspector.");
            }

            if (_drawPickMesh == null)
            {
                Debug.LogError("Please assign a material on the inspector");
            }

            if (_drawPickMaterial == null)
            {
                Debug.LogError("Please assign a mesh on the inspector");
            }

            _world.players.Connection(this);
        }
示例#2
0
 public ChunkPrimer OnBuildChunk(CubizerBehaviour terrain, int x, int y, int z)
 {
     return(_chunkGenerator != null?_chunkGenerator.OnCreateChunk(terrain, x, y, z) : null);
 }
示例#3
0
 public ChunkPrimer OnCreateChunk(CubizerBehaviour terrain, int x, int y, int z)
 {
     return(null);
 }
示例#4
0
 public ChunkPrimer OnBuildChunk(CubizerBehaviour context, int x, int y, int z)
 {
     return(null);
 }