Exemple #1
0
        private void DrawControlPanel()
        {
            EditorGUILayout.BeginHorizontal();
            EditorGUILayout.Space();

            if (GUILayout.Button("", EditorToolkit.BoundariesIconButton()))
            {
                Selection.activeGameObject = MenuExtensions.GetBoundariesControllerRoot();
            }

            EditorGUILayout.Space();

            if (GUILayout.Button("", EditorToolkit.ZonesIconButton()))
            {
                Selection.activeGameObject = MenuExtensions.GetZonesControllerRoot();
            }

            EditorGUILayout.Space();

            if (GUILayout.Button("", EditorToolkit.PoolsIconButton()))
            {
                Selection.activeGameObject = MenuExtensions.GetPoolControllerRoot();
            }

            EditorGUILayout.Space();
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.Space();
            EditorGUILayout.Space();
        }