Created
August 16, 2017 18:09
-
-
Save monry/f806fa2d0f7917e0bc44dbc53a66249d to your computer and use it in GitHub Desktop.
疑似 Dictionary を実現するためのサンプルコードです
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.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