Exemplo n.º 1
0
        protected override void OnNodeInspectorGUI()
        {
            repeaterMode = (RepeaterMode)UnityEditor.EditorGUILayout.EnumPopup("Repeat Type", repeaterMode);

            if (repeaterMode == RepeaterMode.RepeatTimes)
            {
                repeatTimes = (BBParameter <int>)EditorUtils.BBParameterField("Repeat Times", repeatTimes);
            }
            else if (repeaterMode == RepeaterMode.RepeatUntil)
            {
                repeatUntilStatus = (RepeatUntilStatus)UnityEditor.EditorGUILayout.EnumPopup("Repeat Until", repeatUntilStatus);
            }
        }
Exemplo n.º 2
0
        protected override void OnNodeInspectorGUI()
        {
            repeaterMode = (RepeaterMode)UnityEditor.EditorGUILayout.EnumPopup("Repeat Type", repeaterMode);

            if (repeaterMode == RepeaterMode.RepeatTimes){

                repeatTimes = (BBParameter<int>)EditorUtils.BBParameterField("Repeat Times", repeatTimes);

            } else if (repeaterMode == RepeaterMode.RepeatUntil){

                repeatUntilStatus = (RepeatUntilStatus)UnityEditor.EditorGUILayout.EnumPopup("Repeat Until", repeatUntilStatus);
            }
        }