public void OnRecordPersistentData() { TargetSlot = GetComponent <BlossomSaleSlot>(); VariableName = "BlossomSaleSlot" + gameObject.name; DialogueLua.SetVariable(VariableName + "ContainedBlossom", TargetSlot.ContainedBlossom); }
public void OnApplyPersistentData() { TargetSlot = GetComponent <BlossomSaleSlot>(); VariableName = "BlossomSaleSlot" + gameObject.name; TargetSlot.ContainedBlossom = DialogueLua.GetVariable(VariableName + "ContainedBlossom").asString; }
void Start() { TargetSlot = GetComponent <BlossomSaleSlot>(); VariableName = "BlossomSaleSlot" + gameObject.name; }