Skip to content

Instantly share code, notes, and snippets.

@Krita3
Created September 7, 2016 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Krita3/f8df7a8086a50e2eb5007b28cd10334c to your computer and use it in GitHub Desktop.
Save Krita3/f8df7a8086a50e2eb5007b28cd10334c to your computer and use it in GitHub Desktop.
Compositeパターン アイテムを表すクラス
using UnityEngine;
public class GameItemFile : Entry
{
// コンストラクタ
public GameItemFile(string name)
{
this.name = name;
}
public override void PrintListLog(string prefix)
{
Debug.Log(prefix + "/" + this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment