Skip to content

Instantly share code, notes, and snippets.

@todorok1
Last active Jan 8, 2021
Embed
What would you like to do?
readonlyの例
public static class TodoStaticClass
{
public const string name = "todo";
public static readonly int thisYear = 2021;
}
// 別のクラスで呼んでみる
Debug.Log(TodoStaticClass.thisYear);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment