예제 #1
0
        public override void OnInspectorGUI()
        {
            KLEditorUtils.DrawKrillHeader();

            m_lastAutogencode = m_target.autogenerateCode;

            EditorGUI.BeginChangeCheck();

            base.OnInspectorGUI();

            if (EditorGUI.EndChangeCheck())
            {
                // Detech changes to autogenerate code!
                if (m_lastAutogencode != m_target.autogenerateCode)
                {
                    RefreshCore();
                }

                // m_isDirty = m_isDirty || true;
            }

            EditorGUILayout.Space();

            DrawButtons();

            EditorGUILayout.Space();

            DrawSerialList();
        }
예제 #2
0
        public override void OnInspectorGUI()
        {
            KLEditorUtils.DrawKrillHeader();

            EditorGUI.BeginChangeCheck();

            base.OnInspectorGUI();


            EditorGUILayout.Space();
            if (KLServer.Instance.startServerWhenPlay && serverPlayState)
            {
                KrilloudServer.Instance.ChangeServerPort();
                KrilloudServer.Instance.StartServerWhenPlay(KLServer.Instance.startServerWhenPlay);
                serverPlayState = false;
            }
            else if (!KLServer.Instance.startServerWhenPlay && !serverPlayState)
            {
                KrilloudServer.Instance.StartServerWhenPlay(KLServer.Instance.startServerWhenPlay);
                serverPlayState = true;
            }
            GUI.enabled = serverPlayState;

            DrawServerPortButton();
            DrawButtons();
        }
예제 #3
0
        public override void OnInspectorGUI()
        {
            KLEditorUtils.DrawKrillHeader();
            DrawInspectorGUI();

            EditorGUILayout.Space();
            DrawDebugInfo();
        }
예제 #4
0
        private void DrawDebugInfo()
        {
            // EditorGUILayout.Space();
            KLEditorUtils.DrawUILine();

            EditorGUILayout.BeginVertical(EditorStyles.helpBox);
            EditorGUILayout.LabelField("Velocity: " + m_target.GetPrivateFieldValue <Vector3>("m_velocity"));
            EditorGUILayout.EndVertical();
        }
예제 #5
0
        private void DrawDebugInfo()
        {
            KLEditorUtils.DrawUILine();

            EditorGUILayout.BeginVertical(EditorStyles.helpBox);
            DrawDebugInfoRow1();
            DrawDebugInfoRow2();
            EditorGUILayout.EndVertical();
        }
예제 #6
0
 public override void OnInspectorGUI()
 {
     KLEditorUtils.DrawKrillHeader();
     KLEditorUtils.DrawUILine();
     DrawDebugInfo();
 }