Skip to content

Instantly share code, notes, and snippets.

View WillYuum's full-sized avatar
💭
Doing yummy things

WillYum WillYuum

💭
Doing yummy things
View GitHub Profile
<#
-----------------------------------------------------------------------
remove-macos-metadata.ps1
Purpose:
Removes macOS-specific metadata files and directories that are often
included unintentionally in asset packs and ZIP archives created on macOS.
Common examples include:
- .DS_Store files
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
public enum KeyEventType
{
OnKeyDown = 0,
OnKeyHold = 1,
OnKeyUp = 2,
using UnityEngine;
public class BeatDetector : MonoBehaviour
{
public AudioSource audioSource;
public float beatThreshold = 0.2f;
private float[] samples;
private float previousVolume;