Exemple #1
0
		public override void LoadData (string stringData)
		{
			NameData data = Serializer.LoadScriptData <NameData> (stringData);
			if (data == null) return;

			gameObject.name = data.newName;
		}
Exemple #2
0
		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);
		}
Exemple #5
0
        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;
		}