view Assets/Application/Scripts/ItemInfo.cs @ 10:3fefb9f9025d

put Attribute class.
author Kazuma Takeda
date Fri, 20 Jan 2017 07:30:26 +0900
parents
children b55d586dd4eb
line wrap: on
line source

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ItemInfo {

	public string Type;
	public int Broken = 2;
	private int nowBroken = 2;
	public int indexID = 0;
	public int itemID = 1;
	public string ColorCode = "";

	public ItemInfo (int item_id, int broken, string type, string code) {
		itemID      = item_id;
		this.Broken = broken;
		nowBroken   = Broken;
		Type = type;
		ColorCode = code;
	}
}