// Update is called once per frame void Update() { // TEST : 블럭 생성 if (Input.GetMouseButtonDown(0)) { var mouseWorldPoint = MousePoint.GetWorldPoint(); var tile = world.GetTile(mouseWorldPoint); tile?.BuildBlock(BlockManager.Instance.GetBlockInfo("Block")); } if (Input.GetMouseButton(1)) { var mouseWorldPoint = MousePoint.GetWorldPoint(); var tile = world.GetTile(mouseWorldPoint); tile?.DestroyBlock(); } }