Esempio n. 1
0
        protected virtual void OnDrawGizmosSelected()
        {
            if (this.Grid == null)
            {
                return;
            }

            Vector3 gridCellSize = this.Grid.GridCellSize;
            var     extents      = new Vector3(this.Width * gridCellSize.x, this.Height * gridCellSize.y,
                                               this.Depth * gridCellSize.z);

            GizmosEx.DrawWireBox(this.transform.position + extents * 0.5f, extents);
        }