using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PowerReplay : ReplaySimpleObject
{
///
/// 设置特殊属性
///
///
public override void SetCloneGameObject(GameObject obj, string json)
{
obj.AddComponent();
//obj.AddComponent();
obj.AddComponent();
obj.AddComponent();
var jsonData = JsonUtility.FromJson(json);
var PowerAttribute = obj.GetComponent();
PowerAttribute.Task = jsonData.Task;
PowerAttribute.Affiliation = jsonData.Affiliation;
PowerAttribute.Number = jsonData.Number;
PowerAttribute.TypeName = jsonData.TypeName;
var RecordDiverseDatas = GetComponents();
foreach (IReplayDiverseData item in RecordDiverseDatas)
{
item.ReplayDiverseData(jsonData.SpecialData, obj);
}
}
}