Skip to content

Instantly share code, notes, and snippets.

View MrWorner's full-sized avatar

Max MrWorner

View GitHub Profile
@alexanderameye
alexanderameye / CircularMenu.cs
Last active April 2, 2025 21:44
Circular menu for the Unity Editor
/*
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@Matthew-J-Spencer
Matthew-J-Spencer / PlayerAnimator.cs
Created July 6, 2022 11:30
Control unity animations using code. Video: https://youtu.be/ZwLekxsSY3Y
using System;
using UnityEngine;
using UnityEngine.Tilemaps;
using Random = UnityEngine.Random;
public class PlayerAnimator : MonoBehaviour {
[SerializeField] private float _minImpactForce = 20;
// Anim times can be gathered from the state itself, but
// for the simplicity of the video...
@Sn0wCrack
Sn0wCrack / INIFile.cs
Last active September 18, 2024 07:49
A simple way to read INI Files with C#
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace <INSERT_NAMESPACE_HERE>
{
public class INIFile
{
public string path { get; private set; }