海淀天下城电子沙盘单机版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
539 B

4 years ago
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EquipReplay : ReplaySimpleObject
{
/// <summary>
/// 设置特殊属性
/// </summary>
/// <param name="obj"></param>
public override void SetCloneGameObject(GameObject obj, string json)
{
obj.AddComponent<ObjSelectCtrl>();
var jsonData = JsonUtility.FromJson<FiremanEquipRecordData>(json);
Bag b = obj.GetComponent<Bag>();
b.EquipList = jsonData.equips;
b.ChangeCloth();
}
}