Esempio n. 1
0
        public override void OnInspectorGUI()
        {
            foreach (var box in this.boxes)
            {
                GUILayout.Label(BoxManagerEditor.Content(box), Util.AlignedLabel(TextAnchor.MiddleLeft));
            }

            Util.Hint(LayerMask.NameToLayer("Box") != -1, "The \"Box\" layer doesn't exist!");
        }
Esempio n. 2
0
        private void OnSceneGUI()
        {
            if (this.boxes == null)
            {
                return;
            }

            foreach (var box in this.boxes)
            {
                Handles.Label(box.Pos, BoxManagerEditor.Content(box), Util.AlignedLabel(TextAnchor.MiddleCenter));
            }
        }