Skip to content

Commit

Permalink
we do a little formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
float3 committed Feb 11, 2024
1 parent 2c6e5c6 commit fb10ef6
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public override void OnPlayerTriggerEnter(VRCPlayerApi player)
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.IO;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEditor.Experimental.SceneManagement;
using UnityEditor.SceneManagement;
using UnityEngine;

namespace AudioLink.Editor
Expand Down Expand Up @@ -130,4 +130,4 @@ private static GameObject[] GetGameObjectsInScene(string name, bool includeInact
return objects.Where(t => t.gameObject.name == name).Select(t => t.gameObject).ToArray();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ private static void AddDefineIfMissing(BuildTargetGroup buildTarget, string newD
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ public static void LinkAll(AudioLink target)
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ public override void OnInspectorGUI()
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ private static void ReplaceInFile(string path)
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using UnityEngine;
using System;
using System;
using UnityEngine;

namespace AudioLink
{
Expand Down Expand Up @@ -409,4 +409,4 @@ public string GetCustomString2()
}
#endregion
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ public enum MediaLoop
Random = 3,
RandomLoop = 4
}
}
}
6 changes: 2 additions & 4 deletions Packages/com.llealloo.audiolink/Runtime/Scripts/AudioLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ namespace AudioLink
[UdonBehaviourSyncMode(BehaviourSyncMode.Manual)]
public partial class AudioLink : UdonSharpBehaviour
#else
using static Shader;

using Unity.Collections;

using UnityEngine.Rendering;
using static Shader;

public partial class AudioLink : MonoBehaviour
#endif
Expand Down Expand Up @@ -569,7 +567,7 @@ public override void OnAsyncGpuReadbackComplete(VRCAsyncGPUReadbackRequest reque
public void OnAsyncGpuReadbackComplete(AsyncGPUReadbackRequest request)
{
if (request.hasError || !request.done) return;

NativeArray<Color> data = request.GetData<Color>();
for (int i = 0; i < data.Length; i++)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,4 @@ public override void OnPlayerLeft(VRCPlayerApi player)
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ private Color HueShift(Color color, float hueShiftAmount)
return Color.HSVToRGB(h, s, v);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ public void UpdateDataIndex()
_dataIndex = (band * 128) + delay;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ public void UpdateMaterial()
mesh.SetPropertyBlock(block);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ private Color HueShift(Color color, float hueShiftAmount)
return Color.HSVToRGB(h, s, v);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ public void SlideUpdate()
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ public void ToggleUpdate()
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten
}
}
}
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void ForceThemeColorMode()
{
return;
}

themeColorToggle.isOn = false;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#if !UDONSHARP && !COMPILER_UDONSHARP
namespace AudioLink { internal class UdonSyncedAttribute : System.Attribute { } } // stub so we don't have to do the #if UDONSHARP song and dance
#endif
#endif
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,4 @@ public override void OnInspectorGUI()
}

}
#endif
#endif

0 comments on commit fb10ef6

Please sign in to comment.