Пример #1
0
    private void LowerEarth()
    {
        TerraChunksViewModel vm     = Game.Instance.GetViewModel <TerraChunksViewModel>(0);
        TerraVector          vector = new TerraVector((int)transform.position.x, (int)transform.position.z);
        TerraPoint           point  = vm.CurrentChunk.GetFromWorld(vector);

        point.Height -= 1;
        vm.CurrentChunk.SetFromWorld(vector, point);
    }
Пример #2
0
 public void Start()
 {
     _vm = Game.Instance.GetViewModel <TerraChunksViewModel>(0);
     // _vm.OnChunkAdded += VmOnChunkAdded;
     Game.Instance.GetViewModel <TerraViewModel>(0).OnGeometryUpdate += GeometryUpdate;
 }