예제 #1
0
        public RF_Linker_Path AddPath(ref RF_Linker_Station _Station)
        {
            RF_Linker_Path temp_Path = AddPath();

            temp_Path.Next = _Station.AddPath(ref temp_Path);
            return(temp_Path);
        }
예제 #2
0
 /// <summary>
 /// 공간을 주고 그곳에 있을경우 추가
 /// </summary>
 void AddPath_Button(ref RF_Linker_Station station)
 {
     EditorGUILayout.BeginHorizontal();
     {
         addStationTarget = (RF_Linker_Station)EditorGUILayout.ObjectField("TargetStation", addStationTarget, typeof(RF_Linker_Station), true);
         EditorGUI.BeginDisabledGroup(!addStationTarget);
         {
             if (GUILayout.Button("ADD Path"))
             {
                 EditorUtility.SetDirty(station.AddPath(ref addStationTarget));
                 addStationTarget = null;
             }
         }
         EditorGUI.EndDisabledGroup();
     }
     EditorGUILayout.EndHorizontal();
 }