public override IScriptableItem Copy() { IScriptableItem config = base.Copy(); BlueprintConfig target = config as BlueprintConfig; target.mine = mine; target.silk = silk; target.medicine = medicine; target.toxin = toxin; return(config); }
public override void InitModel(ref JSONObject source) { base.InitModel(ref source); mBlueprintConfig = ScriptableObject.CreateInstance <BlueprintConfig>(); source.GetField(ref mBlueprintConfig.medicine, "medicine"); source.GetField(ref mBlueprintConfig.mine, "mine"); source.GetField(ref mBlueprintConfig.silk, "silk"); source.GetField(ref mBlueprintConfig.toxin, "toxin"); }