Skip to content

Instantly share code, notes, and snippets.

type RecordIndex = i32;
type ContentIndex = i32;
type Bytes = Vec<u8>;
/// IJ has the notion of "enumerations" which are basically fast bimaps between a value of
/// arbitrary type and an integer, and support automatically adding new values which
/// get an auto-incremented integer value.
type Enumeration<A> = BiMap<A, i32>;
@sanukin39
sanukin39 / XcodeSettingsPostProcesser.cs
Last active October 11, 2023 16:04
Unity XcodeAPI Settings Sample
using System.IO;
using UnityEngine;
using UnityEditor;
using UnityEditor.iOS.Xcode;
using UnityEditor.Callbacks;
using System.Collections;
public class XcodeSettingsPostProcesser
{
@GuilleUCM
GuilleUCM / ObjectShake.cs
Last active August 7, 2023 18:34
Unity:Animation:Shake object vibrate
using UnityEngine;
using System.Collections;
/// http://www.mikedoesweb.com/2012/camera-shake-in-unity/
public class ObjectShake : MonoBehaviour {
private Vector3 originPosition;
private Quaternion originRotation;
public float shake_decay = 0.002f;