using System.Collections; using System.Collections.Generic; using UnityEngine; public class EquipReplay : ReplaySimpleObject { /// /// 设置特殊属性 /// /// public override void SetCloneGameObject(GameObject obj, string json) { obj.AddComponent(); var jsonData = JsonUtility.FromJson(json); Bag b = obj.GetComponent(); b.EquipList = jsonData.equips; b.ChangeCloth(); } }