public override void LoadData (string stringData) { NameData data = Serializer.LoadScriptData <NameData> (stringData); if (data == null) return; gameObject.name = data.newName; }
public override string SaveData () { NameData nameData = new NameData(); nameData.objectID = constantID; nameData.newName = gameObject.name; return Serializer.SaveScriptData <NameData> (nameData); }
/** * <summary>Serialises appropriate GameObject values into a string.</summary> * <returns>The data, serialised as a string</returns> */ public override string SaveData() { NameData nameData = new NameData(); nameData.objectID = constantID; nameData.newName = gameObject.name; return Serializer.SaveScriptData <NameData> (nameData); }
public NameData SaveData () { NameData nameData = new NameData(); nameData.objectID = constantID; nameData.newName = gameObject.name; return (nameData); }
public override void LoadData(string stringData) { NameData data = Serializer.LoadScriptData <NameData> (stringData); if (data == null) { return; } SavePrevented = data.savePrevented; if (savePrevented) { return; } gameObject.name = data.newName; }
public void LoadData (NameData data) { gameObject.name = data.newName; }