Skip to content

Instantly share code, notes, and snippets.

@monry
Created August 16, 2017 18:09
Show Gist options
  • Save monry/f806fa2d0f7917e0bc44dbc53a66249d to your computer and use it in GitHub Desktop.
Save monry/f806fa2d0f7917e0bc44dbc53a66249d to your computer and use it in GitHub Desktop.
疑似 Dictionary を実現するためのサンプルコードです
using System;
using System.Collections.Generic;
using UnityEngine;
[Serializable]
public struct Fuga {
public string Key;
[Range(1, 10)]
public int Value;
}
public class Hoge : MonoBehaviour {
public Fuga Fuga;
public List<Fuga> FugaList;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment