예제 #1
0
 public override void DeserializeSpecialData(string key, string value)
 {
     switch (key)
     {
     case "fstp":
         currentType = (FaceSignType)int.Parse(value);
         UpdateIcon();
         break;
     }
 }
예제 #2
0
 public override void DrawLowerPropertyBox()
 {
     GUI.color = Color.white;
     EditorGUI.BeginChangeCheck();
     //currentType = (ScreenPosType)EditorGUI.EnumPopup( lowerRect, currentType );
     currentType = (FaceSignType)UndoableEnumPopupNamed(lowerRect, (int)currentType, faceSignTypeStr, "switch face sign type");
     if (EditorGUI.EndChangeCheck())
     {
         UpdateIcon();
         OnUpdateNode();
     }
 }