Skip to content

Instantly share code, notes, and snippets.

View kurokuru's full-sized avatar

Kuro kurokuru

View GitHub Profile
using System;
using System.Linq;
public class Hello{
public static void Main(){
// Your code here!
int value = 1234; // value > 0 を満たさないといけない
var digit = Enumerable.Range(0, (int)Math.Log10(value) + 1) // 常用対数で桁を求め
.Select((item, index) => index) // インデックス番号を値に入れて
.Select(d => (int)(value / (long)Math.Pow(10,d) % 10)); // その桁の整数値を求める
using System;
using System.Collections;
using System.Collections.Generic;
namespace UnityEngine.ResourceManagement.Util
{
// Token: 0x02000016 RID: 22
internal static class CustomResourceManagerConfig
{
// Token: 0x060000A4 RID: 164 RVA: 0x000045C8 File Offset: 0x000027C8
using System;
using System.IO;
using UnityEngine.Networking;
using UnityEngine.ResourceManagement.ResourceLocations;
using UnityEngine.ResourceManagement.Util;
namespace UnityEngine.ResourceManagement.ResourceProviders
{
// Token: 0x02000019 RID: 25
internal class CustomAssetBundleResource : IAssetBundleResource
using System;
using UnityEngine.ResourceManagement.ResourceLocations;
namespace UnityEngine.ResourceManagement.ResourceProviders
{
// Token: 0x0200001A RID: 26
public class CustomAssetBundleProvider : ResourceProviderBase
{
// Token: 0x060000C7 RID: 199 RVA: 0x00004E45 File Offset: 0x00003045
public override void Provide(ProvideHandle providerInterface)
@kurokuru
kurokuru / Request.cs
Created May 16, 2019 13:51
GAEにUnityWebRequestでgzipする
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;
using Ionic.Zlib;
public class WebRequest : MonoBehaviour
{
// Start is called before the first frame update
IEnumerator Start()
@kurokuru
kurokuru / ExampleEditorSetting.cs
Last active May 13, 2019 14:05
Unity Editor ScriptableObject
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// セーブするセッティングデータ
/// </summary>
public class ExampleEditorSetting : ScriptableObject
{
public string Text;