This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using TMPro; | |
using UnityEditor.U2D.Sprites; | |
public class EmoPacker | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
public static class EnumerableExtensions { | |
public static T[] ShuffleArray<T>(this T[] a) { | |
// Loops through array | |
for (int i = a.Length - 1; i > 0; i--) { | |
// Randomize a number between 0 and i (so that the range decreases each time) | |
int rnd = UnityEngine.Random.Range(0, i); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Vibration : MonoBehaviour { | |
public static AndroidJavaClass unityPlayer; | |
public static AndroidJavaObject vibrator; | |
public static AndroidJavaObject currentActivity; | |
public static AndroidJavaClass vibrationEffectClass; | |
public static int defaultAmplitude; |