public void SetBlock(string typeName) { BlockShape shape = BlockShape.Find(typeName); if (shape == null) { return; } this.transform.rotation = Quaternion.identity; BlockGroup layer = new BlockGroup(); layer.AddBlock(new Block(Vector3.zero, BlockDirection.Zplus, shape)); layer.UpdateMesh(); this.guide.SetMesh(layer.GetSurfaceMesh(), layer.GetWireMesh()); this.guide.transform.localPosition = Vector3.zero; this.guide.transform.localScale = Vector3.one; }