Exemplo n.º 1
0
        ///**********************************************step2:获取../platformName******************************************
        ///【streamPath】 + 【custom】+ 【platformName】
        public static string GetPath_PlatformStream_Custom_PlatormSubfolder()
        {
            var platformName = EditorLib.GetPlatformNameByCompile();
            // Combine base path with platform sub-folder
            var platformBasePath = System.IO.Path.Combine(GetPath_PlatformStream("Audio/Generator"), platformName);

            FixSlashes(ref platformBasePath);
            return(platformBasePath);
        }
Exemplo n.º 2
0
        public static string GetStreamingPath_ScdRoot(string fontPath)
        {
            var platformName = EditorLib.GetPlatformNameByCompile();
            // Combine base path with platform sub-folder
            var platformBasePath = System.IO.Path.Combine(fontPath, platformName);

            FixSlashes(ref platformBasePath);
            return(platformBasePath);
        }
 private static void OpenCloseDoors(bool openDoor)
 {
     EditorLib.DoMenuItemFunctionOnce(() =>
     {
         GetManyRoomsFromEditorSelection().MyForEach(room => {
             room.ChangeDoorStateImmediate(openDoor);
             EditorUtility.SetDirty(room);
             foreach (var neighbor in room)
             {
                 EditorUtility.SetDirty(neighbor);
             }
         });
     });
 }
 private static void OpenCloseDoors(Side side, bool openDoor)
 {
     EditorLib.DoMenuItemFunctionOnce(() =>
     {
         GetManyRoomsFromEditorSelection().MyForEach(x => {
             x.ChangeDoorStateImmediate(side, openDoor);
             EditorUtility.SetDirty(x);
             if (x.HasNeighbor(side))
             {
                 EditorUtility.SetDirty(x[side]);
             }
         });
     });
 }