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
[System.Serializable] | |
public class AudioData | |
{ | |
public string name; | |
public int channels; | |
public int samples; | |
public int frequency; | |
public float[] data; | |
public static AudioData FromAudioClip(AudioClip audioClip) |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ParticleSystemLifetime : MonoBehaviour | |
{ | |
public enum Action | |
{ | |
Disable, | |
Destroy |
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 Sirenix.OdinInspector; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class SpriteSwitcher : MonoBehaviour | |
{ | |
[HideInInspector] |
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
public static class BackEndJsonUtility | |
{ | |
public static readonly JsonConverter[] BackEndJsonConverters = | |
{ | |
new ObjectToIntConverter(), | |
new ObjectToFloatConverter(), | |
new ObjectToDoubleConverter(), | |
new ObjectToStringConverter() | |
}; |
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
public struct Page<T> : IEnumerable<T> | |
{ | |
private IEnumerable<T> source; | |
private IEnumerable<T> items; | |
private int pageIndex; | |
private int countPerPage; | |
private int maxPage; | |
public Page(IEnumerable<T> source, int pageIndex, int countPerPage) | |
{ |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UniRx; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
namespace Waker.UI.DragAndDrop | |
{ |
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.Numerics; | |
using UnityEngine; | |
public static class UnitIntegerExtensions | |
{ | |
public static string ToUnitString(this BigInteger b) | |
{ | |
if (b < 1000) | |
{ | |
return b.ToString(); |