private void Awake()
 {
     _voxelRenderer = GetComponent<VoxelModelRenderer>();
     _voxelAnimation = GetComponent<VoxelAnimation>();
     _voxelData = new VoxelData();
     transform.position = new Vector3(-.5f, .5f, -.5f);
 }
Exemple #2
0
 private void Awake()
 {
     _voxelRenderer     = GetComponent <VoxelModelRenderer>();
     _voxelAnimation    = GetComponent <VoxelAnimation>();
     _voxelData         = new VoxelData();
     transform.position = new Vector3(-.5f, .5f, -.5f);
 }