Example #1
0
 /// <summary>
 /// 리셋한다.
 /// </summary>
 public void Reset()
 {
     id   = -1;
     name = "";
     gold = 0;
     reinforcementCount = 0;
     atk         = 0;
     def         = 0;;
     moveSpeed   = 0;;
     attackSpeed = 0;;
     tier        = 0;
     tendency    = 0;;
     type        = EEquipmentItemType.none;
     imageNumber = -1;
 }
Example #2
0
 /// <summary>
 /// 값을 복사한다.
 /// </summary>
 /// <param name="data">복사할 장비 아이템</param>
 public void CopyData(EquipmentItem data)
 {
     id   = data.id;
     name = data.name;
     gold = data.gold;
     reinforcementCount = data.reinforcementCount;
     atk         = data.atk;
     def         = data.def;
     moveSpeed   = data.moveSpeed;
     attackSpeed = data.attackSpeed;
     tier        = data.tier;
     tendency    = data.tendency;
     type        = data.type;
     imageNumber = data.imageNumber;
     //Debug.Log("Copied -> id : " + id + ", name : " + name + ", gold : " + gold + ", reinforcementCount : " + reinforcementCount + ", atk : " + atk + ", def : " + def + ", moveSpeed : " + moveSpeed + ", attackSpeed : " + attackSpeed + ", tier : " + tier + ", tendency : " + tendency + ", type : " + type + ", imageNumber : " + imageNumber + ", icon : " + icon);
 }